/* =========================================================
   LATIHAN SISWA
   AUTH / REGISTRATION
   ========================================================= */

* {
    box-sizing: border-box;
}

.auth-page {
    margin: 0;
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #f5f8ff 0%,
            #ffffff 100%
        );

    color: #172033;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


.auth-shell {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px 18px;
}


.auth-card {
    width: 100%;
    max-width: 520px;

    background: #ffffff;

    border:
        1px solid
        rgba(20, 40, 90, 0.10);

    border-radius: 24px;

    box-shadow:
        0 18px 50px
        rgba(25, 45, 95, 0.10);

    padding: 32px;
}


.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-bottom: 24px;

    margin-bottom: 28px;

    border-bottom:
        1px solid
        #edf0f6;
}


.auth-logo {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #2563eb;
    color: white;

    font-size: 28px;
    font-weight: 800;
}


.auth-brand h1 {
    margin: 0;

    font-size: 21px;
    line-height: 1.2;
}


.auth-brand p {
    margin:
        5px
        0
        0;

    color: #687386;

    font-size: 13px;
    line-height: 1.45;
}


.auth-section[hidden] {
    display: none !important;
}


.auth-heading {
    margin-bottom: 25px;
}


.auth-heading h2 {
    margin:
        10px
        0
        7px;

    font-size: 27px;
    line-height: 1.2;
}


.auth-heading p {
    margin: 0;

    color: #687386;

    font-size: 14px;
    line-height: 1.6;
}


.auth-badge {
    display: inline-flex;

    padding:
        6px
        10px;

    border-radius: 999px;

    background: #eef4ff;
    color: #2563eb;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.02em;
}


.identity-box {
    display: grid;
    gap: 10px;

    margin-bottom: 24px;

    padding: 16px;

    border-radius: 16px;

    background: #f7f9fc;

    border:
        1px solid
        #e9edf4;
}


.identity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}


.identity-item[hidden] {
    display: none !important;
}


.identity-label {
    color: #687386;

    font-size: 13px;
}


.identity-value {
    text-align: right;

    font-size: 14px;

    word-break: break-word;
}


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


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;

    color: #26344d;
}


.optional-label {
    margin-left: 5px;

    color: #7b8798;

    font-size: 11px;
    font-weight: 600;
}


.auth-input {
    width: 100%;

    min-height: 50px;

    padding:
        12px
        14px;

    border:
        1px solid
        #d8dee9;

    border-radius: 13px;

    background: white;

    color: #172033;

    outline: none;

    font-size: 16px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.auth-input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.10);
}


.auth-input:read-only {
    background: #f6f7f9;

    color: #596579;
}


.auth-input.input-error {
    border-color: #dc2626;

    box-shadow:
        0 0 0 4px
        rgba(220, 38, 38, 0.08);
}


.field-help {
    margin:
        7px
        0
        0;

    color: #7b8798;

    font-size: 12px;
    line-height: 1.5;
}


.auth-primary-button {
    width: 100%;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 14px;

    background: #2563eb;
    color: white;

    font-size: 15px;
    font-weight: 750;

    cursor: pointer;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        background 0.15s ease;
}


.auth-primary-button:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


.auth-primary-button:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;
}


.auth-link-button {
    text-align: center;
}


.auth-secondary-action {
    margin-top: 21px;

    text-align: center;
}


.auth-secondary-action a {
    color: #2563eb;

    font-size: 14px;
    font-weight: 650;

    text-decoration: none;
}


.auth-secondary-action a:hover {
    text-decoration: underline;
}


.auth-message {
    margin-bottom: 18px;

    padding:
        12px
        14px;

    border-radius: 12px;

    font-size: 13px;
    line-height: 1.5;
}


.auth-message[hidden] {
    display: none !important;
}


.auth-message.error {
    background: #fff1f1;

    border:
        1px solid
        #fecaca;

    color: #b42318;
}


.auth-message.success {
    background: #effbf3;

    border:
        1px solid
        #bbf7d0;

    color: #15803d;
}


.auth-message.info {
    background: #eff6ff;

    border:
        1px solid
        #bfdbfe;

    color: #1d4ed8;
}


.pending-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin:
        4px
        auto
        20px;

    border-radius: 50%;

    background: #ecfdf3;
    color: #15803d;

    font-size: 33px;
    font-weight: 800;
}


.pending-heading {
    text-align: center;
}


.pending-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 24px;

    padding: 15px 16px;

    border:
        1px solid
        #e6eaf1;

    border-radius: 14px;

    background: #f8fafc;

    font-size: 14px;
}


.pending-info span {
    color: #687386;
}


.pending-info strong {
    color: #172033;
}


@media (max-width: 600px) {

    .auth-shell {
        align-items: flex-start;

        padding:
            16px
            12px;
    }


    .auth-card {
        padding:
            24px
            19px;

        border-radius: 19px;
    }


    .auth-brand {
        margin-bottom: 24px;
    }


    .auth-logo {
        width: 47px;
        height: 47px;

        font-size: 25px;
    }


    .auth-heading h2 {
        font-size: 24px;
    }


    .identity-item {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }


    .identity-value {
        text-align: left;
    }

}
