/* ==========================================================================
   Raquel IT Department - Official Split-Screen Sign In Portal
   - Left Side: Looping Cyber Video Background, PCB Circuits & Raquel IT Seal
   - Right Side: Clean White Sign In Form Matching Monitor Screen 1:1
   ========================================================================== */

:root {
    /* Left Hero Theme (Cybernetic Dark) */
    --raquel-navy-950: #040814;
    --raquel-navy-900: #070f22;
    --raquel-navy-800: #0c1a38;
    --raquel-cyan: #38bdf8;
    --raquel-cyan-glow: rgba(56, 189, 248, 0.45);
    
    /* Golden Accent */
    --gold-primary: #d4af37;
    --gold-bright: #fbbf24;
    --gold-dark: #b48a1c;
    --gold-glow: rgba(212, 175, 55, 0.45);

    /* Crimson Red Pill Accent */
    --crimson-primary: #c8233b;
    --crimson-dark: #9e162a;
    --crimson-hover: #d42740;
    --crimson-glow: rgba(200, 35, 59, 0.4);

    /* Input Field Cyan-Blue Glow */
    --input-bg: #f0f7ff;
    --input-border: #70b0ff;
    --input-glow: rgba(112, 176, 255, 0.32);
    --input-focus-border: #2563eb;
    --input-focus-glow: rgba(37, 99, 235, 0.28);

    /* Typography & Neutral Colors */
    --text-primary: #1e293b;
    --text-slate: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    min-height: 100vh;
    background-color: var(--raquel-navy-950);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ==========================================================================
   Master Split Layout Container
   ========================================================================== */
.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==========================================================================
   LEFT PANE: Cinematic Cyber Video, Circuit Pulses & Raquel IT Emblem
   ========================================================================== */
.login-hero-pane {
    flex: 1.05;
    position: relative;
    background-color: var(--raquel-navy-950);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    color: #ffffff;
    z-index: 1;
}

/* 1. Background Video Layer (Looping Cyber Graphic) */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.9;
    filter: brightness(0.95) contrast(1.15);
    transition: opacity 0.8s ease;
    pointer-events: none;
}

/* 2. Fallback Static Circuit Background Texture */
.hero-circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/login_bg_frame.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.75;
}

/* 3. HTML5 Cyber Canvas Layer (Interactive Particles & Binary Streams) */
#cyberCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* 4. Radial Vignette Gradient Mask */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 38%, rgba(7, 15, 34, 0.2) 0%, rgba(4, 8, 20, 0.72) 65%, rgba(2, 5, 13, 0.9) 100%);
    z-index: 4;
    pointer-events: none;
}

/* 5. Hero Floating Controls */
.hero-controls-bar {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cyber-pill-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(7, 15, 34, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.42rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cyber-pill-btn:hover {
    background: rgba(12, 26, 56, 0.95);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

/* 6. Center Hero Branding Content (Matching Monitor Screen) */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glowing Animated Raquel IT Emblem Badge */
.emblem-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-image {
    width: 190px;
    height: 190px;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.65)) drop-shadow(0 0 50px rgba(56, 189, 248, 0.35));
    transition: transform 0.4s ease;
}

.emblem-image:hover {
    transform: scale(1.05);
}

/* Dual Radial Pulse Rings Behind Gold Seal */
.emblem-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.emblem-pulse-ring-1 {
    width: 215px;
    height: 215px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    animation: emblemPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.emblem-pulse-ring-2 {
    width: 235px;
    height: 235px;
    border: 1.5px dashed rgba(56, 189, 248, 0.45);
    animation: emblemSpin 24s linear infinite;
}

@keyframes emblemPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.25;
    }
}

@keyframes emblemSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hero Typography (Matching Monitor Screen 1:1) */
.hero-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.35);
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.hero-subtitle::before, .hero-subtitle::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #38bdf8);
}
.hero-subtitle::after {
    background: linear-gradient(90deg, #38bdf8, transparent);
}

.hero-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   RIGHT PANE: Clean White Sign In Portal (Matching Monitor Screen 1:1)
   ========================================================================== */
.login-form-pane {
    flex: 0.95;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 5;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
}

.login-form-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Main Heading: SIGN IN */
.sign-in-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #1e293b;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2.25rem;
}

/* Custom Field Labels */
.form-label-custom {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-slate);
    margin-bottom: 0.45rem;
    display: block;
}

/* Soft Blue Glowing Input Field Box (From Monitor Image) */
.input-custom-group {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    box-shadow: 0 0 12px var(--input-glow);
    transition: all 0.25s ease;
}

.input-custom-group:hover {
    border-color: #4b92f7;
    box-shadow: 0 0 16px rgba(75, 146, 247, 0.35);
}

.input-custom-group:focus-within {
    border-color: var(--input-focus-border);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 18px var(--input-focus-glow);
}

/* Embedded Input Icons */
.input-icon-left {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-size: 1.15rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-custom-control {
    width: 100%;
    height: 48px;
    background: transparent;
    border: none;
    padding: 0 1rem 0 2.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    border-radius: 10px;
}

.input-custom-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Password Toggle Eye Button */
.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.4rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #1e293b;
}

/* Remember Me & Forgot Password Row */
.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.75rem;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-slate);
    cursor: pointer;
    user-select: none;
}

.remember-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.forgot-password-link {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Primary Crimson Red Pill Button (From Monitor Image) */
.btn-sign-in {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 9999px;
    background: linear-gradient(180deg, var(--crimson-primary) 0%, var(--crimson-dark) 100%);
    border: none;
    color: #ffffff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--crimson-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sign-in:hover {
    background: linear-gradient(180deg, var(--crimson-hover) 0%, #aa1a2f 100%);
    box-shadow: 0 6px 22px rgba(200, 35, 59, 0.55);
    transform: translateY(-2px);
}

.btn-sign-in:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px var(--crimson-glow);
}

/* Secondary Button: Request Access (Pill on Right Side) */
.request-access-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.btn-request-access {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.4rem;
    border-radius: 8px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-request-access:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Security Disclaimer & Copyright (From Monitor Image) */
.auth-disclaimer {
    margin-top: 2.75rem;
    text-align: center;
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-copyright {
    text-align: center;
    font-size: 0.775rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

/* Quick 1-Click Demo Login Box */
.demo-login-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.demo-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-slate);
}

.btn-demo-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    color: var(--text-slate);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-demo-pill:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .login-split-container {
        flex-direction: column;
    }

    .login-hero-pane {
        flex: none;
        min-height: 420px;
        padding: 3rem 1.5rem;
    }

    .emblem-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 1.25rem;
    }

    .emblem-image {
        width: 135px;
        height: 135px;
    }

    .emblem-pulse-ring-1 {
        width: 155px;
        height: 155px;
    }

    .emblem-pulse-ring-2 {
        width: 170px;
        height: 170px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .login-form-pane {
        flex: 1;
        padding: 2.5rem 1.5rem;
        box-shadow: none;
    }
}
