/* =============================================
   LOGIN EHS TECNOLOGÍAS — Estilos personalizados
   ============================================= */

/* Fondo dividido */
body.login-page {
    background: #f4f6f9;
    font-family: 'Nunito', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Wrapper principal */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Panel izquierdo — branding */
.login-panel-left {
    width: 380px;
    min-height: 100vh;
    background: linear-gradient(160deg, #0d2c6e 0%, #1a4da0 65%, #1e5cb5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Círculos decorativos */
.login-panel-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(240, 127, 26, 0.15);
    pointer-events: none;
}

.login-panel-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* Logo circular */
.login-brand-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 48px;
    color: #f07f1a;
}

/* O bien si tienes logo imagen: */
.login-brand-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.login-brand-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.login-brand-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Lista de módulos */
.login-modules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.login-modules-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-modules-list li:last-child {
    border-bottom: none;
}

.login-modules-list li i {
    color: #f07f1a;
    font-size: 15px;
    flex-shrink: 0;
}

/* Panel derecho — formulario */
.login-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f4f6f9;
}

/* Tarjeta del formulario */
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(13, 44, 110, 0.08);
    border: 1px solid rgba(13, 44, 110, 0.06);
}

.login-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0d2c6e;
    margin-bottom: 0.35rem;
    text-align: center;
}

.login-card-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
}

/* Grupos de formulario */
.login-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.login-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 13px;
    color: #9ca3af;
    font-size: 17px;
    pointer-events: none;
    z-index: 1;
}

.login-form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

.login-form-control:focus {
    border-color: #1a4da0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 77, 160, 0.12);
}

.login-form-control::placeholder {
    color: #c0c9d4;
}

/* Fila recordar + olvidé */
.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.login-remember-row .form-check-label {
    font-size: 0.82rem;
    color: #6c757d;
    cursor: pointer;
}

.login-forgot-link {
    font-size: 0.82rem;
    color: #1a4da0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-forgot-link:hover {
    color: #f07f1a;
    text-decoration: underline;
}

/* Botón principal */
.btn-login-ehs {
    width: 100%;
    height: 46px;
    background: #0d2c6e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-login-ehs:hover {
    background: #1a4da0;
}

.btn-login-ehs:active {
    transform: scale(0.98);
}

.btn-login-ehs i {
    font-size: 18px;
}

/* Divisor y versión */
.login-divider {
    text-align: center;
    font-size: 0.75rem;
    color: #c0c9d4;
    margin: 1.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

/* Footer */
.login-footer-text {
    text-align: center;
    font-size: 0.78rem;
    color: #adb5bd;
    line-height: 1.6;
}

.login-footer-text .badge-version {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(240, 127, 26, 0.1);
    color: #c06010;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

/* Responsive — ocultar panel izquierdo en móvil */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }
    .login-panel-left {
        width: 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    .login-modules-list {
        display: none;
    }
    .login-brand-tagline {
        margin-bottom: 0;
    }
}