.btn-secure-login {
    margin-top: 0;
    background: linear-gradient(135deg, #0f766e, #16a34a);
    box-shadow: 0 14px 28px rgb(15 118 110 / .24);
}

.btn-secure-login:hover {
    box-shadow: 0 16px 32px rgb(15 118 110 / .32);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 2px;
    color: #64748b;
    font-size: .85rem;
    font-weight: 800;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e2e8f0;
}

.page-shell[data-secure-only="true"] .password-login-only {
    display: none !important;
}

.page-shell[data-secure-only="false"] .secure-login-only {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html,
body {
    background: #f6f8fb;
}

.page-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .035), transparent 38%),
        #f6f8fb;
}

.auth-shell {
    width: min(100%, 460px);
    position: relative;
    z-index: 2;
}

.home-panel,
.login-card {
    width: 100%;
    max-width: 460px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .11);
}

.home-panel {
    min-height: min(620px, calc(100dvh - 44px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 34px 26px;
    text-align: center;
}

.home-brand {
    margin-bottom: 2px;
}

.home-copy h1 {
    margin: 0;
    color: #0f172a;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.18;
}

.home-copy p {
    margin: 12px auto 0;
    max-width: 320px;
    color: #475569;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.85;
}

.btn-fingerprint {
    width: 136px;
    height: 158px;
    margin: 6px auto 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f766e;
    box-shadow: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.fingerprint-art {
    width: 128px;
    height: 152px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(15, 118, 110, .14));
    transition: filter .2s ease;
}

.btn-fingerprint:hover {
    transform: translateY(-3px);
    filter: brightness(.98);
    box-shadow: none;
}

.btn-fingerprint:hover .fingerprint-art {
    filter: drop-shadow(0 20px 22px rgba(15, 118, 110, .18));
}

.btn-fingerprint:active {
    transform: scale(.97);
}

.btn-fingerprint:focus-visible {
    outline: 4px solid rgba(37, 99, 235, .2);
    outline-offset: 4px;
}

.btn-fingerprint.loading {
    pointer-events: none;
    opacity: .9;
}

.btn-fingerprint.loading .fingerprint-art {
    display: none;
}

.btn-fingerprint.loading .spinner {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-width: 4px;
}

.secure-login-status {
    min-height: 28px;
    margin: 2px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0f766e;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.6;
}

.secure-login-status[hidden] {
    display: none !important;
}

.status-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(15, 118, 110, .22);
    border-top-color: #0f766e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex: 0 0 auto;
}

.btn-home-login {
    margin-top: 6px;
}

.home-foot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: .9rem;
    font-weight: 800;
}

.home-foot i {
    color: #0f766e;
}

.auth-panel {
    position: relative;
}

.btn-back-home {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.btn-back-home:hover {
    background: #eef2f7;
    transform: translateX(2px);
}

.login-card {
    padding-top: 34px;
}

.login-card .hero h1 {
    font-size: 1.8rem;
}

.login-card .hero p {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.brand-mark {
    border-radius: 18px;
}

@media (max-width: 480px) {
    .page-shell {
        padding: 14px;
    }

    .home-panel {
        min-height: calc(100dvh - 28px);
        padding: 28px 20px;
    }

    .home-copy h1 {
        font-size: 2rem;
    }

    .home-copy p {
        font-size: .97rem;
    }

    .home-panel,
    .login-card {
        border-radius: 16px;
    }
}
