/* ==========================================================================
   🔐 ESTILOS PARA VISTAS DE AUTENTICACIÓN (LOGIN / REGISTRO)
   ========================================================================== */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* 🎨 Panel visual izquierdo con el fondo de brocha */
.auth-visual {
    background: url('../Img/brush-bg.png') center/cover;
    display: flex;
    align-items: center;
    padding: 80px;
}

.auth-visual-text {
    font-family: var(--ff-nota); /* 🔄 Sincronizado con tu fuente Inter */
    max-width: 520px;
}

.line1 {
    color: #dce6f5;
    font-size: 2rem;
}

.line2 {
    font-size: 3.2rem;
    font-weight: var(--fw-bold);
    background: linear-gradient(90deg, #4fc3e8, #a97fe0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 12px 0 24px;
}

.underline {
    width: 80px;
    height: 5px;
    background: #2bc4c6;
    border-radius: 2px;
}

/* 🏢 Panel derecho del Formulario (Fondo Oscuro unificado) */
.auth-form-panel {
    background: var(--color-navy-dark); /* 🔄 Usa tu variable unificada */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    font-family: var(--ff-subtitulo); /* 🔄 Sincronizado con tu League Spartan */
    color: var(--color-gold);        /* 🔄 Usa tu variable unificada */
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.auth-title {
    font-family: var(--ff-titulo);   /* 🔄 Sincronizado con tu Poppins */
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: var(--fw-bold);
    margin-bottom: 34px;
}

/* ⌨️ Campos de Entrada (Inputs) */
.auth-input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 18px;
    background: var(--color-input-gray); /* 🔄 Usa tu variable unificada */
    border: none;
    border-radius: var(--radius-sm);    /* 🔄 Usa tu variable unificada */
    color: #ffffff;
    font-family: var(--ff-texto);       /* 🔄 Sincronizado con tu Quicksand */
    font-size: 15px;
    transition: 0.25s ease;
}

.auth-input::placeholder {
    color: #d4d4d8;
}

.auth-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-teal); /* 🔄 Usa tu variable unificada */
}

.auth-policy-line {
    font-family: var(--ff-texto);
    color: #d4d4d8;
    font-size: .85rem;
    margin-bottom: 10px;
}

.auth-policy-line a {
    color: var(--color-gold); /* 🔄 Usa tu variable unificada */
}

/* 🔘 Fila de Recuérdame / Checkbox */
.auth-checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--ff-texto);
    color: #d4d4d8;
    font-size: .85rem;
    margin-bottom: 26px;
}

.auth-checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-teal); /* 🔄 Usa tu variable unificada */
}

/* 🚀 Botón de Enviar Formulario */
.auth-btn {
    width: 100%;
    padding: 18px;
    background: var(--color-btn-light); /* 🔄 Usa tu variable unificada */
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-btn-text-dark);
    font-family: var(--ff-titulo);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    transition: 0.2s ease;
}

.auth-btn:hover {
    background: var(--color-btn-light-hover); /* 🔄 Usa tu variable unificada */
    cursor: pointer;
}

.auth-footer-link {
    text-align: center;
    margin-top: 30px;
    font-size: .9rem;
    font-family: var(--ff-texto);
    color: #aeafb8;
}

.auth-footer-link a {
    color: var(--color-gold); /* 🔄 Usa tu variable unificada */
    font-weight: var(--fw-semibold);
}

/* ========================================================================== 
   🚨 AJUSTES DE VALIDACIÓN DE LOGIN Y REGISTRO
   Agregados al final para facilitar la fusión con el CSS compartido.
   ========================================================================== */
.auth-field {
    width: 100%;
    margin-bottom: 18px;
}

.auth-field .auth-input {
    margin-bottom: 0;
    border: 2px solid transparent;
}

.auth-field.has-error .auth-input {
    border-color: #ff2f2f;
    box-shadow: none;
}

.auth-error,
.auth-terms-error {
    min-height: 0;
    margin: 4px 4px 0;
    color: #ff5252;
    font-family: var(--ff-nota);
    font-size: .72rem;
    line-height: 1.2;
    display: none;
}

.auth-field.has-error .auth-error,
.auth-terms-error.is-visible { display: block; }
.auth-terms-row { margin-bottom: 0; }
.auth-terms-error { margin: 5px 0 16px; text-align: right; }
.auth-remember-label { display: flex; align-items: center; gap: 8px; }
.auth-forgot-link { color: var(--color-gold); }
.auth-form-inner { padding-block: 20px; }

@media (max-height: 760px) and (min-width: 769px) {
    .auth-form-panel { padding-block: 24px; }
    .auth-field { margin-bottom: 11px; }
    .auth-title { margin-bottom: 20px; }
    .auth-input { padding-block: 13px; }
}


/* V1.1 · Recuperación de contraseña */
.auth-help-text {
    max-width: 430px;
    margin: -8px auto 24px;
    color: #c5cbd0;
    font-family: var(--ff-texto);
    font-size: .9rem;
    line-height: 1.5;
    text-align: center;
}
.auth-recovery-success {
    margin-top: 22px;
    padding: 16px 18px;
    border: 2px solid #73d780;
    border-radius: 8px;
    background: rgba(115, 215, 128, .12);
    color: #e8fff0;
    font-family: var(--ff-texto);
    line-height: 1.45;
}
.auth-recovery-success strong {
    display: block;
    margin-bottom: 5px;
    color: #95efa0;
    font-family: var(--ff-subtitulo);
}
.auth-recovery-success p { margin: 0; }
.auth-back-login { margin-top: 24px; }
.auth-back-login a { color: var(--color-gold); }
