/* =========================================
   AUTH SPLIT SCREEN (Login & Registro)
   ========================================= */

/* Contenedor Principal que parte la pantalla */
.auth-wrapper {
    display: flex;
    min-height: 100vh; /* Ocupa toda la altura */
    width: 100%;
    background-color: #050505; /* Fondo negro marca */
    overflow: hidden; /* Evita scrolls innecesarios */
}

/* Lado de la Imagen (Artístico) */
.auth-image-side {
    flex: 1; /* Ocupa el 50% */
    position: relative;
    overflow: hidden;
    display: none; /* En celular se oculta por defecto */
}

/* En Desktop (pantallas grandes) se muestra */
@media (min-width: 992px) {
    .auth-image-side {
        display: block;
    }
}

.auth-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s ease; /* Efecto zoom lento muy sutil */
}

/* Efecto de Zoom lento automático */
.auth-image-side:hover .auth-bg-img {
    transform: scale(1.05);
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.8)); /* Sombra para unir con el lado oscuro */
}

/* Texto sobre la imagen (Cita o Branding) */
.auth-quote {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    color: #fff;
    z-index: 2;
}

.auth-quote h3 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.auth-quote p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Lado del Formulario */
.auth-form-side {
    flex: 1; /* Ocupa el otro 50% */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical */
    padding: 40px 8%; /* Espaciado lateral responsivo */
    background-color: #050505;
    position: relative;
}

/* Contenido del Formulario */
.form-content {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInRight 0.8s ease-out;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

.auth-subtitle a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-subtitle a:hover {
    color: var(--brand-blue);
}

/* Inputs Estilizados */
.form-floating-custom {
    position: relative;
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333; /* Solo línea abajo */
    padding: 15px 0;
    color: #fff;
    font-size: 1.1rem;
    transition: border-color 0.3s, background-size 0.3s;
    border-radius: 0;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.form-input::placeholder {
    color: transparent; /* Ocultamos placeholder nativo para usar label flotante si quisieras, o poner color #555 */
}

/* Si prefieres placeholder visible simple: */
.form-input::placeholder {
    color: #555;
    font-size: 1rem;
}

.form-label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botón de Acción */
.btn-auth {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--brand-blue), #064085);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(8, 82, 161, 0.2);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(8, 82, 161, 0.3);
}

/* Alert Error */
.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Animación de entrada */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Botón "Volver al Home" flotante */
.btn-back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.btn-back-home:hover {
    color: #fff;
}