/*******************************************************************************
 * *
 * 11. PÁGINA DE LOGIN (ACCESO RESTRINGIDO)                                    *
 * *
 *******************************************************************************/

.contenedor-login {
    min-height: calc(100vh - 80px);
    /* Ajusta según la altura de tu nav */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    padding: 20px;
}

.caja-login {
    background: white;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Lado del Formulario */
.login-formulario {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 30px;
}

.logo-login {
    width: 76px;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 26px;
    color: #111;
    margin-bottom: 5px;
}

.login-header p {
    color: #777;
    font-size: 14px;
}

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

.grupo-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.input-icono {
    position: relative;
}

.input-icono i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-icono input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
}

.input-icono input:focus {
    border-color: #cf1515;
    outline: none;
    box-shadow: 0 0 0 3px rgba(207, 21, 21, 0.1);
}

.login-opciones {
    display: flex;
    align-items: center;
    margin: -4px 0 18px;
}

.recordarme-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.recordarme-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #cf1515;
}

.btn-acceder {
    width: 100%;
    background: #cf1515;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-acceder:hover {
    background: #a31111;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    font-size: 12px;
    color: #999;
}

/* Lado Decorativo (Rojo) */
.login-decoracion {
    background: linear-gradient(135deg, #cf1515 0%, #8b0e0e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px;
    position: relative;
}

/* Círculo sutil de fondo para la decoración */
.login-decoracion::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.decoracion-contenido h2 {
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
}

.decoracion-contenido p {
    font-size: 16px;
    opacity: 0.8;
    position: relative;
}

/* =========================
   Modo oscuro SOLO Login
   ========================= */
html[data-theme="dark"] .contenedor-login {
    background: #0b1220;
}

html[data-theme="dark"] .caja-login {
    background: #111827;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .login-header h1 {
    color: #f8fafc;
}

html[data-theme="dark"] .logo-login {
    border-radius: 16px;
    background: #0f172a;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .login-header p {
    color: #94a3b8;
}

html[data-theme="dark"] .grupo-input label {
    color: #cbd5e1;
}

html[data-theme="dark"] .input-icono i {
    color: #64748b;
}

html[data-theme="dark"] .input-icono input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

html[data-theme="dark"] .input-icono input::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .input-icono input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

html[data-theme="dark"] .recordarme-label {
    color: #cbd5e1;
}

html[data-theme="dark"] .recordarme-label input[type="checkbox"] {
    accent-color: #ef4444;
}

html[data-theme="dark"] .btn-acceder {
    background: #dc2626;
}

html[data-theme="dark"] .btn-acceder:hover {
    background: #b91c1c;
}

html[data-theme="dark"] .login-footer {
    border-top-color: #334155;
}

html[data-theme="dark"] .login-footer p {
    color: #94a3b8;
}

html[data-theme="dark"] .login-decoracion {
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
}
