#login-screen.fhn-login {
    --login-accent: #0f766e;
    --login-accent-dark: #115e59;
    --login-tint: #f1f5f9;
    --login-border: #dbe4ee;
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow-y: auto;
    padding: 24px 16px;
    background: #f1f5f9;
    color: #0f172a;
}

.fhn-login-layout {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}

.fhn-login-width { width: min(100%, 400px); }

.fhn-login-card {
    padding: clamp(20px, 5vw, 32px);
    border: 1px solid var(--login-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(15 23 42 / 6%);
}

.fhn-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-end: 24px;
}

.fhn-login-logo { width: 120px; height: auto; }

.fhn-login-title {
    font-size: 1.375rem;
    line-height: 1.4;
    font-weight: 800;
}

.fhn-login-language {
    min-height: 44px;
    border: 1px solid var(--login-border);
    border-radius: 10px;
    background: var(--login-tint);
    padding-inline: 10px;
    color: #334155;
    font-size: .875rem;
    font-weight: 600;
}

.fhn-login-label {
    display: block;
    margin-block-end: 6px;
    color: #334155;
    font-size: .9rem;
    font-weight: 700;
}

.fhn-login-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 1rem;
}

.fhn-login-input:-webkit-autofill {
    -webkit-text-fill-color: #0f172a;
    box-shadow: inset 0 0 0 100px #f8fafc;
}

#login-screen.fhn-login .fhn-login-input:focus-visible {
    border-color: var(--login-accent);
    outline: 2px solid #99d5cc;
    outline-offset: 0;
}

.fhn-login-password-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding-inline: 6px;
    border-radius: 8px;
    color: var(--login-accent-dark);
    font-size: .875rem;
    font-weight: 600;
}

.fhn-login-password-toggle:hover,
.fhn-login-password-toggle[aria-pressed="true"] { background: var(--login-tint); }

#login-screen.fhn-login .fhn-login-submit,
#login-screen.fhn-login :is(#auth-tab-login, #auth-tab-register).bg-blue-600 {
    background: var(--login-accent);
    color: white;
}

#login-screen.fhn-login .fhn-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
}

#login-screen.fhn-login .fhn-login-submit:hover { background: var(--login-accent-dark); }
.fhn-login-submit:disabled { opacity: .65; cursor: wait; }

#login-screen.fhn-login :focus-visible {
    outline: 2px solid var(--login-accent);
    outline-offset: 2px;
}

@media (forced-colors: active) {
    .fhn-login-input:-webkit-autofill {
        -webkit-text-fill-color: CanvasText;
        box-shadow: none;
    }

    #login-screen.fhn-login .fhn-login-submit { border: 1px solid ButtonText; }
}
