/* public/css/login.css */
/* Estilos base para Desktop (dos columnas) + Estilos Móvil Mejorados */
/* Versión SIN variables CSS, con valores literales */

/* Importar Google Font: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
/* Importar Google Font: Roboto */
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400&display=swap');

/* --- ESTILOS GENERALES (Base Desktop) --- */
body {
    font-family: "Roboto", sans-serif; /* Fuente Roboto para Desktop */
    margin: 0;
    padding: 0;
    background-color: #fff; /* Fondo blanco base */
    color: #333; /* Color original */
    font-size: 16px;
    line-height: 1.5;
}

/* --- ESTILOS DESKTOP (Base - Dos Columnas) --- */
.container {
    display: flex;
    height: 100vh;
    max-width: 100% !important;
    padding: 0 !important;
}

.left-column,
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.left-column {
    background-color: #f0f0f0; /* Fondo gris original */
}

.right-column {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.imagen-logo {
    width: 50%;
    max-width: 280px; /* Ancho mantenido del usuario */
    height: auto;
    margin-bottom: 40px;
}

/* Formulario base desktop */
form {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff; /* Fondo blanco */
    padding: 30px;
    border-radius: 8px; /* Redondeo original desktop */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra actualizada */
    box-sizing: border-box;
}

h1.h3 {
    font-size: 1.8em;
    font-weight: 400;
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

p.mb-4 {
    font-size: 1em;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}

.mb-3 {
    margin-bottom: 20px !important;
}

label, .form-label {
    display: block;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

input[type="email"].form-control,
input[type="password"].form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px; /* Redondeo original desktop */
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    color: #495057;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1) !important; /* Sombra interna original */
    height: auto;
}
/* --- FOCUS DESKTOP SIN EFECTO VISUAL --- */
input[type="email"].form-control:focus,
input[type="password"].form-control:focus {
    outline: none;
    border-color: #ced4da; /* Mantener borde normal */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1) !important; /* Mantener sombra normal */
}
input::placeholder {
    color: #6c757d;
    opacity: 1;
}

button.btn.btn-primary[type="submit"] {
    display: block;
    width: 100%;
    background-color: #eb6304 !important;
    border-color: #eb6304 !important;
    color: white !important;
    padding: 10px 16px;
    font-size: 1.1rem;
    font-weight: 400;
    border-radius: 4px; /* Redondeo original desktop */
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: solid 1px #eb6304;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 15px;
    height: auto;
    font-family: inherit;
}
button.btn.btn-primary[type="submit"]:active {
    background-color: #d35400 !important;
    transform: scale(0.98);
}

.alert.alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 10px !important;
    padding: 15px !important;
    font-size: 0.9em;
    margin-bottom: 20px;
    text-align: center;
}

/* --- ESTILOS MÓVIL (Sobrescriben lo necesario) --- */
@media (max-width: 926px) {
    body {
        font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Fuente Inter */
        background-color: #f2f2f7; /* Fondo gris claro */
        font-size: 16px; /* Tamaño base móvil */
        display: block;
        height: auto;
        min-height: 100vh; /* Asegurar altura mínima */
    }

    /* Ocultar columna derecha */
    .right-column {
        display: none !important;
    }

    /* Ajustar columna izquierda */
    .left-column {
        flex: none;
        width: 100%;
        min-height: 100vh;
        background-color: #f2f2f7; /* Fondo gris claro */
        justify-content: center; /* Centrar contenido verticalmente */
        padding: 20px; /* Padding general móvil */
    }

    .imagen-logo {
        width: 80%; /* Ancho mantenido del usuario */
        max-width: 260px; /* Ancho móvil mantenido */
        margin-bottom: 35px;
    }

    /* Estilo del formulario tipo tarjeta */
    form {
        background-color: #ffffff; /* Valor literal */
        padding: 25px;
        max-width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Valor literal */
        border-radius: 10px; /* Valor literal */
        border: none;
        box-sizing: border-box;
    }

    h1.h3 {
        font-size: 1.8em;
        margin-bottom: 8px;
        font-weight: 600;
        color: #1d1d1f; /* Color primario texto */
    }

    p.mb-4 {
        font-size: 1.1em;
        margin-bottom: 30px;
        color: #6e6e73; /* Color secundario texto */
    }

    .mb-3 {
        margin-bottom: 25px !important;
    }

    label, .form-label {
        font-size: 1em;
        margin-bottom: 10px;
        color: #3c3c43; /* Color label */
        font-weight: 500;
    }

    input[type="email"].form-control,
    input[type="password"].form-control {
        font-size: 1.1em;
        padding: 15px;
        border-radius: 10px; /* Redondeo móvil */
        border: 1px solid #d1d1d6; /* Borde input */
        box-shadow: none !important;
        background-color: #ffffff; /* Fondo input */
        color: #1d1d1f; /* Color texto input */
        font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Asegurar fuente Inter */
    }
    /* --- FOCUS MÓVIL SIN EFECTO VISUAL --- */
    input[type="email"].form-control:focus,
    input[type="password"].form-control:focus {
        outline: none;
        border-color: #d1d1d6; /* Mantener borde normal */
        box-shadow: none !important; /* Asegurar que no haya sombra */
    }
    input::placeholder {
        color: #c7c7cc; /* Color placeholder */
    }


    button.btn.btn-primary[type="submit"] {
        font-size: 1.15em;
        padding: 15px 16px;
        border-radius: 10px; /* Redondeo móvil */
        margin-top: 15px;
        background-color: #eb6304 !important; /* Naranja */
        border-color: #eb6304 !important;   /* Naranja */
        font-weight: 500;
        font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Fuente Inter */
        border: none;
        color: white !important;
    }
    button.btn.btn-primary[type="submit"]:active {
        background-color: #d35400 !important; /* Naranja oscuro */
        border-color: #d35400 !important;
        transform: scale(0.98);
    }

    .alert.alert-danger {
        font-size: 1em;
        background-color: #ffebee !important;
        color: #ff3b30 !important; /* Rojo Apple */
        border: 1px solid #ff3b30 !important; /* Rojo Apple */
        border-radius: 8px !important;
        padding: 12px 15px !important;
    }
}

/* --- Limpieza Final --- */
.session-info { display: none; }
/* button { width: auto !important; } */

