/* Login y registro — fondo profesional */
body.page-auth {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 10% 20%, rgba(45, 159, 111, 0.2) 0%, transparent 50%),
        linear-gradient(145deg, #0a1628 0%, #1a365d 50%, #0d3d34 100%);
    background-attachment: fixed;
}

body.page-auth::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 48px 48px;
}

.auth-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.auth-card h1 {
    color: #1a365d;
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}

.auth-badge {
    display: inline-block;
    background: #e8f5ef;
    color: #1e7a52;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

body.page-auth .nav {
    background: rgba(10, 22, 40, 0.9);
}

.aviso-plan-gratuito {
    margin-bottom: 1.1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.45;
}

.aviso-plan-gratuito p {
    margin: 0;
}

.aviso-plan-gratuito strong {
    color: #475569;
    font-weight: 600;
}

.form-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.form-label-row label {
    margin: 0;
}

.forgot-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--verde-claro);
    text-decoration: none;
    white-space: nowrap;
}

.forgot-link:hover {
    text-decoration: underline;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--verde);
    background: rgba(13, 92, 63, 0.08);
}

.password-toggle .icon-eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-closed {
    display: block;
}
