* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #000000f1, #000e36f1);
    padding: 0;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    display: block; 
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 10px;
}

.login-box {
    background: linear-gradient(135deg, #000e36, #000000);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    width: clamp(350px, 90vw, 500px);
    min-width: 350px;
}

@media (max-height: 800px) and (orientation: landscape) {
    .login-box {
        width: 500px;
        padding: 25px 20px;
        margin: 20px;
    }
}

.login-box h2 {
    margin-bottom: clamp(18px, 3vw, 26px);
    color: rgb(223, 235, 255);
    font-weight: 600;
    font-size: clamp(22px, 4.5vw, 30px);
    text-align: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 16px);
}

.login-form label {
    font-size: clamp(14px, 2.8vw, 16px);
    color: rgb(198, 219, 255);
    text-align: left;
}

.login-form input {
    padding: clamp(11px, 2.5vw, 15px) clamp(12px, 2.5vw, 16px);
    border-radius: clamp(8px, 1.8vw, 10px);
    border: 1px solid rgb(198, 219, 255);
    outline: none;
    font-size: clamp(15px, 3vw, 17px);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
    background: rgb(223, 235, 255);
}

.login-form input:focus {
    border-color: rgb(44, 32, 153);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.login-form button {
    margin-top: clamp(10px, 2.5vw, 16px);
    padding: clamp(13px, 3vw, 18px);
    border: none;
    border-radius: clamp(10px, 2vw, 14px);
    background: rgb(44, 32, 153);
    color: rgb(223, 235, 255);
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.1s;
}

.login-form button:hover {
    background: rgb(26, 18, 102);
}

.login-form button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) inset;
}

.error {
    text-align: center;
    color: rgb(255, 192, 229);
    padding-top: clamp(6px, 2vw, 10px);
    font-size: clamp(14px, 2.8vw, 16px);
}

