
/* School LMS 4 — Dynamic Unit Login + Password Recovery
   Login visual tetap mengikuti layout unit-aware legacy asli. */

html, body.unit-login-document {
    margin: 0;
    width: 100%;
    height: 100%;
}

body.unit-login-document {
    background: #eef3f5;
}

.unit-login-page {
    min-height: 100vh !important;
    height: 100vh !important;
    height: 100dvh !important;
}

.unit-login-shell {
    min-height: 0 !important;
}

.unit-login-toolbar {
    justify-content: space-between !important;
}

.unit-login-toolbar-picker-hidden {
    justify-content: flex-end !important;
}

.login-logo-fallback {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--unit-login-accent), var(--unit-login-navy));
    font-size: 1.55rem;
    box-shadow: 0 12px 30px rgba(8,47,91,.18);
}

.login-logo-fallback-card {
    margin: 0 auto;
    width: 64px;
    height: 64px;
}

.login-parity-alert {
    margin-bottom: 9px !important;
    font-size: .68rem !important;
}

.login-passkey-visual {
    color: #bd5a00;
    border-color: #d7742a;
    font-size: .72rem;
}

.login-divider {
    font-size: .64rem !important;
}

.unit-login-form-options a {
    color: var(--unit-login-navy);
    font-weight: 800;
    text-decoration: none;
}

.unit-login-form-options a:hover {
    text-decoration: underline;
}

/* Password recovery — ringan dan tidak bergantung pada layout legacy. */
.password-recovery-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(0,96,148,.12), transparent 30%),
        radial-gradient(circle at 85% 85%, rgba(8,47,91,.12), transparent 35%),
        #f3f6f8;
    font-family: Montserrat, Arial, sans-serif;
    color: #102a43;
}

.password-recovery-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.password-recovery-card {
    width: min(500px, 100%);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(8,47,91,.12);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 0 24px 70px rgba(8,47,91,.14);
}

.password-recovery-card h1 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 8px;
    color: #082F5B;
}

.password-recovery-card > p {
    color: #64748b;
    margin-bottom: 24px;
}

.password-recovery-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #e9f4fa;
    color: #006094;
    font-size: 1.55rem;
    margin-bottom: 18px;
}

.password-recovery-back {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #476079;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.recovery-otp-input {
    letter-spacing: .45em;
    font-weight: 800;
    font-size: 1.5rem;
}

@media (min-width: 1200px) and (min-height: 780px) {
    .unit-login-toolbar,
    .unit-login-shell {
        width: min(1365px, calc(100% - 48px)) !important;
    }

    .unit-login-toolbar {
        padding-top: 8px !important;
        padding-bottom: 7px !important;
    }

    .unit-login-shell {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr) !important;
    }

    .unit-login-footer {
        min-height: 44px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

@media (max-width: 991.98px) {
    html:has(body.unit-login-document),
    body.unit-login-document {
        overflow: auto !important;
    }

    .unit-login-page {
        height: auto !important;
        min-height: 100vh !important;
    }
}


/* Register Account hotfix */
.unit-login-actions .login-register-link {
    color: var(--unit-login-navy);
    font-weight: 800;
    text-decoration: none;
}
.unit-login-actions .login-register-link:hover {
    text-decoration: underline;
}

.registration-page {
    overflow: auto;
}

.registration-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 18px;
}

.registration-card {
    width: min(920px, 100%);
    border-radius: 26px;
    padding: clamp(24px, 4vw, 40px);
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(8,47,91,.12);
    box-shadow: 0 28px 80px rgba(8,47,91,.15);
}

.registration-heading {
    margin-bottom: 22px;
}

.registration-heading h1 {
    color: #082F5B;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 6px;
}

.registration-heading p {
    color: #64748b;
    margin-bottom: 0;
}

.registration-student-box {
    padding: 16px;
    border-radius: 16px;
    background: #f4f9fc;
    border: 1px solid #d8eaf4;
}

.registration-student-box > strong {
    color: #075985;
}

.login-passkey-status{
    margin-bottom:0!important;
    font-size:.72rem!important;
    line-height:1.45;
    border-radius:10px!important;
}
#passkeyLoginButton:disabled{
    opacity:.62;
    cursor:not-allowed;
}
