/* ==========================================================================
   Mercado Juegos - Pantallas de autenticación (login / registro)
   Layout tipo "split screen": panel de marca a la izquierda (desktop)
   + tarjeta de formulario a la derecha. En mobile solo se ve el formulario.
   ========================================================================== */

.auth-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 168px);
}

@media (min-width: 992px) {
    .auth-split {
        grid-template-columns: 1.05fr 1fr;
    }
}

/* ---------- Panel de marca (solo desktop) ---------- */
.auth-visual {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 3.5rem 3.25rem;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 241, 89, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, var(--mj-blue) 0%, #14173d 100%);
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(circle at 25% 20%, black, transparent 65%);
    mask-image: radial-gradient(circle at 25% 20%, black, transparent 65%);
    pointer-events: none;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 420px;
}

.auth-visual-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #ffffff;
    width: fit-content;
}

.auth-visual-brand .brand-accent-light {
    color: var(--mj-yellow);
}

.auth-visual-heading {
    margin-top: auto;
    padding-top: 3rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.auth-visual-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.auth-feature-list {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.auth-feature-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--mj-yellow);
}

.auth-feature-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-feature-text span {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.auth-visual-footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Lado del formulario ---------- */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f8;
    padding: 2.5rem 1.15rem;
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
    animation: authFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marca visible solo en mobile, arriba del formulario */
.auth-mobile-brand {
    text-decoration: none;
    color: #222;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--mj-radius);
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(20, 23, 61, 0.07);
}

.auth-input-group .input-group-text {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #6b7280;
}

.auth-input {
    border-color: #d1d5db;
    font-size: 0.95rem;
    transition: var(--mj-transition);
}

.auth-input:focus {
    border-color: var(--mj-blue);
    box-shadow: 0 0 0 3px rgba(45, 50, 119, 0.15);
}

.auth-toggle-btn {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #6b7280;
    transition: var(--mj-transition);
}

.auth-toggle-btn:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.auth-help-text {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.4;
}

.auth-switch-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    transition: var(--mj-transition);
}

.auth-switch-card:hover {
    border-color: #cbd5e1;
}
