/* ====================================================================
   OPEN SLEP STAF-TEC - LOGIN STYLE SPECIFICATION (Kit Digital v3.0.1)
   Split-Screen Layout: Hero Pane (Left) + Clean Form Pane (Right)
   ==================================================================== */

:root {
    --slep-primary:        #004070;   /* Azul Institucional */
    --slep-dark:           #002039;   /* Fondo Oscuro */
    --slep-cyan:           #008bc0;   /* Cyan Secundario */
    --slep-red:            #e72329;   /* Rojo de Acento */
}

/* Reset y cuerpo */
html, body.login-body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--slep-dark);
    overflow-x: hidden;
    color-scheme: light !important;
}

/* Franja superior tricolor */
.top-stripe {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--slep-red), #f87171, var(--slep-cyan), var(--slep-red));
    background-size: 300% 100%;
    z-index: 100;
    animation: shimmer 6s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Split-Screen Wrapper */
.login-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Columna Izquierda: Hero Pane */
.login-hero-pane {
    flex: 1 1 60%;
    background: radial-gradient(ellipse at 30% 50%, var(--slep-primary) 0%, var(--slep-dark) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.login-hero-pane::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Orbes flotantes animados */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.orb-1 { width: 320px; height: 320px; background: var(--slep-primary); top: 10%; left: 10%; animation: floatOrb 14s infinite ease-in-out alternate; }
.orb-2 { width: 280px; height: 280px; background: var(--slep-cyan); bottom: 10%; right: 10%; animation: floatOrb 18s infinite ease-in-out alternate-reverse; }
.orb-3 { width: 200px; height: 200px; background: var(--slep-red); top: 50%; left: 40%; transform: translate(-50%, -50%); animation: pulseOrb 10s infinite ease-in-out; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes pulseOrb {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-45%, -55%) scale(1.25); opacity: 0.35; }
}

.hero-content-box {
    max-width: 580px;
    position: relative;
    z-index: 10;
}

.hero-logo-card {
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 1.25rem;
}

.hero-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-logo-icon {
    font-size: 2.8rem;
    color: var(--slep-red);
}

.login-pill-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
}

.hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-features-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.features-header {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.feature-item {
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

/* Columna Derecha: Formulario */
.login-form-pane {
    flex: 0 0 40%;
    min-width: 420px;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    z-index: 20;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
}

.form-container {
    width: 100%;
    max-width: 360px;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
}

.form-subtitle {
    font-size: 0.85rem;
    color: #475569 !important;
    margin-bottom: 0;
}

.alert-login-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #b91c1c;
    font-size: 0.83rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-label-custom {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1e293b !important;
    margin-bottom: 0.4rem;
}

.input-wrapper {
    position: relative;
}

.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #0f172a !important;
    transition: all 0.2s ease;
}

.form-control-custom::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.form-control-custom:focus {
    outline: none;
    background-color: #ffffff !important;
    border-color: #004070 !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 3.5px rgba(0, 64, 112, 0.15) !important;
}

/* Autofill fix para navegadores (Chrome/Edge/Safari/Firefox) */
.form-control-custom:-webkit-autofill,
.form-control-custom:-webkit-autofill:hover,
.form-control-custom:-webkit-autofill:focus,
.form-control-custom:-webkit-autofill:active {
    -webkit-text-fill-color: #0f172a !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.password-toggle-custom {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #475569 !important;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}

.password-toggle-custom:hover {
    color: #0f172a !important;
}

.btn-login-custom {
    width: 100%;
    padding: 0.85rem;
    background: #1e293b;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-login-custom:hover {
    background: #002039;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 32, 57, 0.3);
}

/* Responsivo Mobile / Tablet */
@media (max-width: 991px) {
    .login-split-wrapper {
        flex-direction: column;
    }

    .login-hero-pane {
        flex: 1 1 auto;
        padding: 3rem 1.5rem;
    }

    .login-form-pane {
        flex: 1 1 auto;
        min-width: 100%;
        padding: 3rem 1.5rem;
    }
}
