/* Auth — Honorax dark brand (alineado con correos) */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 16px;
    background-color: #0b1220;
    background-image:
        radial-gradient(ellipse 90% 60% at 50% -20%, rgb(93 228 199 / 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgb(124 156 255 / 0.12), transparent 50%),
        linear-gradient(165deg, #0b1220 0%, #121a2e 45%, #0f172a 100%);
}

.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(93 228 199 / 0.06), transparent);
    pointer-events: none;
    opacity: 0.6;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    animation: authEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authEnter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.04);
    border: 1px solid rgb(255 255 255 / 0.08);
    margin-bottom: 16px;
}

.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5de4c7 0%, #7c9cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #05070d;
    box-shadow: 0 8px 24px rgb(93 228 199 / 0.35);
}

.auth-brand-text {
    text-align: left;
}

.auth-brand-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.auth-brand-text span {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.auth-brand-accent {
    height: 3px;
    width: 64px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5de4c7, #7c9cff, #5de4c7);
}

.auth-brand p.auth-tagline {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.45;
}

.auth-logo { display: none; }

.auth-card {
    background: rgb(255 255 255 / 0.97);
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 0.05) inset,
        0 32px 64px -24px rgb(0 0 0 / 0.55);
}

.auth-card h2 {
    font-size: 1.35rem;
    margin: 0 0 6px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-card .auth-sub {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.auth-field { margin-bottom: 16px; }

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #5de4c7;
    box-shadow: 0 0 0 3px rgb(93 228 199 / 0.25);
}

.auth-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #5de4c7 0%, #7c9cff 100%);
    color: #05070d;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 24px -6px rgb(93 228 199 / 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -6px rgb(93 228 199 / 0.55);
}

.auth-btn:active:not(:disabled) { transform: scale(0.98); }

.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.86rem;
}

.auth-links a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover { text-decoration: underline; }

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    margin-bottom: 16px;
    line-height: 1.45;
}

.auth-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.auth-alert-info { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }

.auth-reset-url {
    word-break: break-all;
    font-size: 0.78rem;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 12px 0;
}

.auth-reset-url a { color: #0d9488; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.75rem;
    color: #64748b;
}

.auth-code-input {
    font-size: 1.35rem !important;
    letter-spacing: 0.35em;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .auth-wrap { animation: none; }
    .auth-btn:hover { transform: none; }
}
