/* /resources/web/css/bs5-custom.css */

/* ===================================================================
   1. ESTILOS GENERALES Y DE LAYOUT
   =================================================================== */

/* --- Fondo y cuerpo principal --- */
html {
    height: 100%;
}
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.login-page-background {
    background: linear-gradient(to right, #3931af, #00c6ff);
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-card, .login-panel {
    display: flex;
    width: 90%;
    min-height: 60vh;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.main-card {
    background-color: white;
    max-width: 900px;
}
.login-panel {
    max-width: 1000px;
}
.left-panel, .login-panel-left {
    background-color: #f8f9fa;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.left-panel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}
.left-panel-content img {
    max-width: 100%;
    max-height: 150px;
    height: auto;
    margin-bottom: 20px;
}
.fibico-text {
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1.3;
    color: #333;
    font-weight: bold;
    margin: 0;
}
.fibico-cordoba {
    color: #007bff;
}
.left-panel-footer {
    text-align: center;
    width: 100%;
    padding-top: 20px;
    margin-top: auto;
}
.left-panel-footer h3 {
    font-size: 1.5rem;
    font-weight: 300; /* fw-light */
    color: #6c757d;
}
.version-badge {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.left-panel-footer a {
    text-decoration: underline;
    color: #007bff;
    font-size: 0.9rem;
}
.right-panel, .login-panel-right {
    background-color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.left-panel, .login-panel-left { width: 40%; }
.right-panel, .login-panel-right { width: 60%; }
.right-panel h3, .login-panel-right h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.right-panel p.subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 30px;
}
.changelog-card {
    max-width: 1100px;
    min-height: 80vh;
}
.changelog-card .left-panel { width: 35%; }
.changelog-card .right-panel { width: 65%; overflow-y: auto; }
.changelog-list { list-style-type: none; padding: 0; }
.changelog-list > li { border-bottom: 1px solid #dee2e6; }
.collapsible {
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 5px;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
}
.collapsible::after {
    content: '\f067';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #007bff;
    float: right;
    transition: transform 0.3s;
}
.collapsible.active::after {
    transform: rotate(45deg);
}
.content {
    padding: 0 18px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
}
.content ul {
    list-style-type: none;
    padding: 15px 0 15px 10px;
}
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
.logo-animado {
    animation: floatAnimation 4s ease-in-out infinite;
}
@media (max-width: 800px) {
    .login-page-background {
        padding: 20px 0;
        align-items: flex-start;
        height: auto;
    }
    .main-card, .login-panel {
        flex-direction: column;
        width: 95%;
        min-height: auto;
    }
    .left-panel, .right-panel, .login-panel-left, .login-panel-right {
        width: 100%;
        padding: 25px;
        text-align: center;
        align-items: center;
    }
    .left-panel-footer {
        padding-top: 20px;
    }
    .changelog-card .right-panel {
        overflow-y: visible;
    }
}
/* ===================================================================
   7. ESTILOS PARA VALIDACIÓN DE ERRORES EN FORMULARIOS
   =================================================================== */

/* Estilo para el mensaje de error en texto rojo (ya debería existir) */
.error-message {
    color: #dc3545; /* Rojo de Bootstrap para peligro */
    font-size: 0.875em;
    margin-top: 5px;
    text-align: left; /* Asegura que el texto largo se alinee a la izquierda */
}

/* Estilo para el campo de entrada cuando tiene un error */
.input-group.error-field .form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); /* Sombra roja sutil */
}

/* Cambia el color del icono a rojo también */
.input-group.error-field .input-group-text {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #842029;
}