/* ==========================================================================
   RESET & ESTILOS GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    background: linear-gradient(90deg,rgba(245, 245, 245, 0.75) 0%, rgba(255, 0, 0, 0.39) 50%),url('/img/heidelberg.jpg') center center / cover no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

/* Container Principal Flotante */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1050px;
    min-height: 600px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   SECCIÓN IZQUIERDA: FORMULARIO
   ========================================================================== */
.login-form-side {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-container {
    text-align: center;
    margin-bottom: 40px;
}

.brand-container .logo {
    max-width: 220px;
    height: auto;
}

.brand-container .subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-top: 5px;
    font-weight: 600;
}

.form-content h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #e65c00;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(230, 92, 0, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 30px;
}

.remember-me {
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot-pass {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: #e65c00;
}

/* Botón con el gradiente corregido y estilizado */
.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f15a24 0%, #9e1f63 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(158, 31, 99, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
}

/* ==========================================================================
   SECCIÓN DERECHA: POLÍTICA DE CALIDAD
   ========================================================================== */
.login-info-side {
    flex: 1.1;
    position: relative;
    /* Degradado naranja a magenta exacto y elegante */
    background: linear-gradient(135deg, #f15a24 0%, #9e1f63 100%);
    color: white;
    padding: 50px 60px;
    display: flex;
    align-items: center;
}

/* Textura gráfica de fondo (líneas curvas de vectores / artes gráficas) */
.overlay-graphic {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.12;
    background-image: radial-gradient(circle at 100% 150%, transparent 24%, white 24%, white 28%, transparent 28%, transparent),
                      linear-gradient(45deg, transparent 45%, white 45%, white 55%, transparent 55%);
    background-size: 4em 4em;
    pointer-events: none;
}

.info-content {
    position: relative;
    z-index: 2;
}

.quality-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.info-content h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
}

/* Línea decorativa debajo del título */
.info-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #fff;
    margin-top: 10px;
    border-radius: 2px;
}

.info-content p {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 20px;
    font-weight: 300;
    color: rgb(255, 255, 255);
    text-align: justify;
}

.info-content p strong {
    font-weight: 700;
    color: #fff;
}

css/* ── Sesión activa ── */
.alert-warning {
    border-radius: 10px;
}

/* Input de contraseña en bloque de sesión activa */
#form-forzar input[type="password"]:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   RESPONSIVO (Para Tablets y Celulares)
   ========================================================================== */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }
    .login-info-side {
        padding: 40px;
    }
    .login-form-side {
        padding: 40px;
    }
}

.text-danger{
    color: #d90429;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.is-invalid{
    border: 2px solid #d90429 !important;
    background: #fff5f5;
}

.alert-danger{
    background: #ffe5e5;
    color: #b00020;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ffb3b3;
}