.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f7f9fc;
    padding: 72px 0;
}

.login-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(79, 140, 255, .22), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(124, 58, 237, .18), transparent 24%),
        radial-gradient(circle at 70% 80%, rgba(34, 211, 238, .12), transparent 25%);
}

.login-card {
    position: relative;
    background: rgba(255, 255, 255, .94);
    padding: 56px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 28px;
    box-shadow: 0 35px 90px rgba(15, 23, 42, .14);
}

.login-card h1 {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -.04em;
}

.login-logo {
    width: 220px;
}

.register-plan {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(79, 140, 255, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 140, 255, .08), rgba(34, 211, 238, .08));
}

.plan-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.plan-badge-free {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.plan-badge-pro {
    background: linear-gradient(135deg, #2563eb, #4f8cff);
}

.plan-badge-year {
    background: linear-gradient(135deg, #111827, #334155);
}

.register-plan-text {
    color: #475569;
    font-size: .95rem;
    line-height: 1.45;
}

.validation-summary-valid {
    display: none;
}

.form-label {
    color: #1e293b;
    font-weight: 700;
}

.form-control {
    border: 1px solid rgba(148, 163, 184, .5);
    border-radius: 14px;
    min-height: 58px;
}

.form-control:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 .25rem rgba(79, 140, 255, .20);
}

.btn-primary {
    border: 0;
    border-radius: 14px;
    min-height: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #4f8cff);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #3267d6);
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    font-size: .95rem;
}

.auth-links a {
    color: #2563eb;
    font-weight: 700;
}

.auth-links a:hover,
.auth-links a:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-links-separator {
    color: #cbd5e1;
}

.passkey-panel,
.passkey-register-request {
    padding: 18px;
    border: 1px solid rgba(79, 140, 255, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 140, 255, .08), rgba(34, 211, 238, .08));
}

.passkey-panel strong,
.passkey-register-request label {
    color: #0f172a;
    font-weight: 800;
}

.passkey-panel p,
.passkey-register-request p {
    margin: 6px 0 14px;
    color: #64748b;
    font-size: .95rem;
}

.passkey-register-request p {
    margin-bottom: 0;
}

.passkey-button {
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
}

.passkey-button:hover,
.passkey-button:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1d4ed8);
}

.passkey-button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.passkey-message {
    min-height: 22px;
    margin-top: 12px;
    color: #475569;
    font-size: .92rem;
    font-weight: 600;
}

.passkey-benefits {
    display: grid;
    gap: 12px;
}

.passkey-benefit {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.passkey-benefit strong {
    color: #0f172a;
    font-weight: 800;
}

.passkey-benefit span {
    color: #64748b;
    font-size: .94rem;
}

@media (max-width: 767.98px) {
    .login-page {
        padding: 40px 0;
    }

    .login-card {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .login-logo {
        width: 180px;
    }

    .register-plan {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-links {
        flex-direction: column;
        gap: 8px;
    }

    .auth-links-separator {
        display: none;
    }
}
