/* =========================================
   EXTRACTA — Auth pages (login, register)
   ========================================= */

/* Quita navbar y footer en páginas de auth */
.auth-page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Panel izquierdo oscuro --- */
.auth-left {
    width: 50%;
    background-color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    text-align: center;
}

.auth-left .brand-icon {
    width: 72px;
    height: 72px;
    background-color: var(--color-orange);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.auth-left h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.auth-left p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto 40px;
}

/* Stats */
.auth-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-stat {
    background-color: #1f2937;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 90px;
    text-align: center;
}

.auth-stat .value {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.auth-stat .label {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* --- Panel derecho blanco --- */
.auth-right {
    width: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-form-wrap h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.auth-form-wrap .auth-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 36px;
}

/* Campos */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-field .field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-field .forgot-link {
    font-size: 0.8rem;
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
}

.auth-field .forgot-link:hover {
    text-decoration: underline;
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.auth-input::placeholder { color: #9ca3af; }

/* Campo contraseña con ojo */
.password-wrap {
    position: relative;
}

.password-wrap .auth-input {
    padding-right: 44px;
}

.password-wrap .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

.password-wrap .toggle-password:hover { color: #374151; }

/* Botón principal */
.btn-auth {
    width: 100%;
    padding: 13px;
    background-color: var(--color-orange);
    color: #ffffff;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 8px;
    box-sizing: border-box;
}

.btn-auth:hover  { background-color: var(--color-orange-dark); }
.btn-auth:active { transform: scale(0.98); }

/* Link inferior */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer-text a {
    color: var(--color-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover { text-decoration: underline; }

/* Error messages */
.auth-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #b91c1c;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page-wrapper { flex-direction: column; }
    .auth-left  { width: 100%; padding: 48px 24px; }
    .auth-right { width: 100%; padding: 48px 24px; }
}

/* =========================================
   SUCCESS MESSAGE (para verificación)
   ========================================= */

.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #15803d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.auth-success i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Ajustes para iconos grandes en panel izquierdo */
.auth-left .brand-icon i {
    font-size: 2rem;
}

/* Espaciado para botones después de mensajes */
.auth-success + .btn-auth,
.auth-error + .btn-auth {
    margin-top: 24px;
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}