/* 1. Fondo y Contenedor */
.auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

}
/* 2. Tarjeta Glassmorphism Mejorada */
.glass-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px; /* Bordes más redondeados */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards; /* Animación de entrada */
    opacity: 0;
    transform: translateY(20px);
}

/* 3. Inputs "Seamless" (Parecen una sola pieza) */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    color: #6c757d;
}

.form-control {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: none;
    padding-left: 0; /* Pega el texto al icono */
    font-size: 1rem;
}

.form-control:focus {
    background-color: #fff;
    box-shadow: none; /* Quitamos el glow default de bootstrap */
    border-color: #dee2e6;
}

/* Efecto focus en*/
.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: #0d6efd;
    background-color: #fff;
}

.input-group:focus-within .input-group-text {
    color: #0d6efd;
}

/* 4. Logo y Animaciones */
.brand-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 20px; /* Squircle (cuadrado redondeado) es más moderno que el círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ADAPTACIÓN MODO OSCURO (LOGIN/REGISTER) --- */
[data-bs-theme="dark"] .auth-container {
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(30, 30, 30, 0.75);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #333;
    color: white;
}