/* ============================================================
   auth.css  –  OmniDate Auth Pages (Login / Register)
   Split-panel design orientado a conversión y retención
   ============================================================ */

/* Shell de dos columnas */
.auth-shell {
    display: flex;
    min-height: calc(100vh - var(--navbar-height, 64px));
    background: var(--mp-slate-50, #f8fafc);
}

/* ── Panel de marca (izquierdo) ── */
.auth-brand-panel {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 44%;
    flex-shrink: 0;
    background: linear-gradient(155deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .auth-brand-panel { display: flex; }
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(139,92,246,.28), transparent 50%),
        radial-gradient(ellipse at 10% 85%, rgba(14,165,233,.2),  transparent 45%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    max-width: 380px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2.25rem;
}

.auth-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.auth-omni  { color: #93c5fd; }
.auth-date  { color: #c4b5fd; }

.auth-brand-headline {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 .9rem;
    letter-spacing: -.025em;
}

.auth-brand-sub {
    font-size: .95rem;
    color: rgba(219,234,254,.85);
    line-height: 1.65;
    margin: 0 0 2rem;
}

/* Lista de beneficios */
.auth-feature-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}

.auth-feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: .05rem;
    line-height: 1.3;
}

.auth-feature-list li div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.auth-feature-list li strong {
    font-size: .92rem;
    font-weight: 700;
    color: #e0f2fe;
}

.auth-feature-list li span {
    font-size: .82rem;
    color: rgba(186,230,253,.8);
}

/* Testimonio */
.auth-testimonial {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    backdrop-filter: blur(6px);
}

.auth-testimonial p {
    margin: 0 0 .4rem;
    font-size: .9rem;
    color: #dbeafe;
    font-style: italic;
    line-height: 1.5;
}

.auth-testimonial span {
    font-size: .78rem;
    color: rgba(147,197,253,.85);
    font-weight: 600;
}

/* ── Panel de formulario (derecho) ── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: #fff;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
}

.auth-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-form-title {
    margin: 0 0 .4rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.auth-form-sub {
    margin: 0;
    font-size: .9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .85rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.auth-label {
    font-size: .84rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.auth-label i { color: #2563eb; }

.auth-input {
    width: 100%;
    padding: .72rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .95rem;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}

.auth-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.auth-input::placeholder { color: #94a3b8; }

/* Mensaje de error */
.auth-error {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: .7rem 1rem;
    font-size: .87rem;
    font-weight: 500;
}

/* Botón principal */
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .8rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .22s cubic-bezier(.4,0,.2,1);
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
    letter-spacing: .01em;
    margin-top: .35rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,.42);
}

.auth-submit-btn:active { transform: translateY(0); }

/* Divisor */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0 .9rem;
    color: #94a3b8;
    font-size: .82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Botón secundario */
.auth-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem;
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    font-family: inherit;
}

.auth-secondary-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Términos */
.auth-terms {
    text-align: center;
    margin: 1.1rem 0 0;
    font-size: .78rem;
    color: #94a3b8;
    line-height: 1.5;
}

.auth-terms a {
    color: #2563eb;
    text-decoration: underline;
}

.auth-terms a:hover { color: #1d4ed8; }

/* Checkbox personalizado */
.auth-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.auth-checkbox-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: .2rem;
    flex-shrink: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: .84rem;
    color: #475569;
    line-height: 1.5;
}

.auth-checkbox-label a {
    color: #2563eb;
    text-decoration: underline;
}
