/* =================================
   Estilos para Login y Registro
   ================================= */

/* --- Contenedor Principal --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box; /* Asegura que el padding no cause desbordamiento */
}

/* --- La Caja de Formulario (Glassmorphism) --- */
.form-box {
    width: 100%;
    max-width: 400px; /* Ancho máximo del formulario */
    padding: 40px;
    background: rgba(25, 23, 43, 0.6); /* Color de fondo oscuro con transparencia */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
}

#heading {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
}

/* --- Campos de Entrada (Email, Contraseña) --- */
.field {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 85%;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; /* Un poco más grande para mejor visibilidad */
    height: 18px;
    fill: #9ca3af; /* Color gris claro para el icono */
    transition: fill 0.3s ease;
}

.input-field {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; /* Espacio para el icono */
    background-color: rgba(48, 50, 74, 0.5); /* Más oscuro y translúcido */
    border: 1px solid #4A4A5A; /* Borde sutil */
    border-radius: 8px;
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

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

.input-field:focus {
    border-color: #5865f2; /* Un color de acento morado/azulado */
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3);
}

.input-field:focus + .input-icon {
    fill: #5865f2;
}

/* --- Botones --- */
.button-primary {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #5865f2, #7852f0);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.button-primary:disabled {
    background: #555;
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: none;
}

/* --- Mensajes y Enlaces --- */
#status {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    color: #ff6b6b; /* Un rojo suave para errores */
    font-size: 0.9rem;
    min-height: 1.2em;
}

.bottom-text {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    color: #9ca3af;
}

.bottom-text a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
}

.bottom-text a:hover {
    text-decoration: underline;
}