/* =========================================
   AS STUDENT SERVICE - PREMIUM LOGIN
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

html {
    min-height: 100%;
    background: #17183f;
}

body {
    min-height: 100vh;
    color: #1e293b;
    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(105, 108, 230, 0.22),
            transparent 40%
        ),
        radial-gradient(
            ellipse at 85% 85%,
            rgba(124, 58, 237, 0.18),
            transparent 40%
        ),
        linear-gradient(135deg, #11132f 0%, #232463 55%, #34358a 100%);
}

/* =========================================
   LOGIN CONTAINER
========================================= */

.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

/* =========================================
   LOGIN CARD
========================================= */

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================
   HEADER
========================================= */

.login-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 27px 22px 25px;
    background: linear-gradient(135deg, #24266f, #4548b5);
}

.login-header::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    top: -100px;
    right: -35px;
}

.login-header::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    bottom: -85px;
    left: -30px;
}

.login-logo {
    width: 200px;
    height: 200px;
    margin: -60px auto -60px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h1 {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-header p {
    position: relative;
    z-index: 1;
    color: #d5d7ff;
    font-size: 11px;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* =========================================
   LOGIN BODY
========================================= */

.login-body {
    padding: 28px 27px 23px;
}

.login-heading {
    margin-bottom: 23px;
}

.login-heading h2 {
    color: #1e1b4b;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.login-heading p {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 7px;
    line-height: 1.6;
}

/* =========================================
   ERROR MESSAGE
========================================= */

.error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #be123c;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.error-message i {
    margin-top: 2px;
}

/* =========================================
   FORM GROUP
========================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* =========================================
   INPUT
========================================= */

.input-box {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    min-height: 47px;
    background: #f8f9fd;
    border: 1px solid #e2e5ef;
    border-radius: 11px;
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.input-box:focus-within {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-box > i {
    color: #818cf8;
    font-size: 14px;
    width: 17px;
    text-align: center;
    flex-shrink: 0;
}

.input-box input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 0;
    color: #334155;
    font-size: 12px;
}

.input-box input::placeholder {
    color: #a5afbf;
}

.input-box button {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.input-box button:hover {
    color: #5558d9;
}

/* =========================================
   LOGIN BUTTON
========================================= */

.login-btn {
    width: 100%;
    height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #30328d, #5558d9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(85, 88, 217, 0.2);
    transition:
        background 0.2s,
        box-shadow 0.2s;
}

.login-btn:hover {
    background: linear-gradient(135deg, #25276e, #4447bd);
    box-shadow: 0 7px 18px rgba(85, 88, 217, 0.3);
}

.login-btn:active {
    opacity: 0.9;
}

/* =========================================
   QUEUE BUTTON
========================================= */

.queue-btn {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border: 1px solid #e0e3f5;
    border-radius: 11px;
    background: #ffffff;
    color: #383a8c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.queue-btn i {
    color: #6366f1;
}

.queue-btn:hover {
    background: #f5f5ff;
    border-color: #b9bcf5;
}

/* =========================================
   FOOTER
========================================= */

.login-footer {
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid #f0f1f6;
    color: #a0a9b8;
    font-size: 10px;
    text-align: center;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 17px;
    }

    .login-header {
        padding: 24px 18px 22px;
    }

    .login-body {
        padding: 24px 20px 20px;
    }

    .login-heading h2 {
        font-size: 21px;
    }
}

/* =========================================
   STABLE DISPLAY
========================================= */

.login-card,
.login-header,
.login-body,
.login-logo {
    animation: none !important;
    transform: none !important;
}

/* =========================================
   EMAIL SCAN BUTTON
========================================= */

.email-scan-btn {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: #f8f9fd;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}

.email-scan-btn i {
    color: #6366f1;
    font-size: 15px;
}

.email-scan-btn:hover {
    background: #f0f0ff;
    border-color: #b9bcf5;
    color: #383a8c;
    box-shadow: 0 4px 12px rgba(85, 88, 217, 0.08);
}

.email-scan-btn:hover i {
    color: #4447bd;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
