/* ===================================================================
   GESTIA ERP — MASTER EXECUTIVE LOGIN STYLESHEET
   Aesthetics: Obsidian Executive & Liquid Glassmorphism
   Mode: Multi-Theme (Obsidian Dark + Clean Slate Light)
   =================================================================== */

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --theme-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================================================================
   THEME DEFINITIONS
   =================================================================== */

/* DARK THEME (OBSIDIAN EXECUTIVE) */
html[data-theme="dark"],
body[data-theme="dark"] {
    --bg-page: #060913;
    --bg-page-mesh: radial-gradient(circle at 15% 20%, #0d1b3e 0%, transparent 45%),
                    radial-gradient(circle at 85% 80%, #063d33 0%, transparent 45%),
                    radial-gradient(circle at 50% 50%, #091224 0%, #04060c 100%);
    
    --card-bg: rgba(11, 17, 32, 0.9);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(16, 185, 129, 0.2);
    --card-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.05);

    --brand-side-bg: linear-gradient(155deg, #052e24 0%, #064e3b 40%, #022c22 100%);
    --brand-card-bg: rgba(255, 255, 255, 0.05);
    --brand-card-border: rgba(255, 255, 255, 0.1);
    --brand-card-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-subtle: #475569;

    --input-bg: rgba(15, 23, 42, 0.65);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-border-focus: #10B981;
    --input-focus-glow: rgba(16, 185, 129, 0.25);
    --input-text: #F8FAFC;
    --input-placeholder: #64748B;
    --input-icon: #64748B;
    --input-icon-focus: #10B981;

    --btn-primary-start: #059669;
    --btn-primary-end: #047857;
    --btn-primary-glow: rgba(16, 185, 129, 0.4);

    --toggle-bg: rgba(255, 255, 255, 0.08);
    --toggle-border: rgba(255, 255, 255, 0.12);
    --toggle-text: #F8FAFC;
    --toggle-hover: rgba(255, 255, 255, 0.16);

    --badge-glass-bg: rgba(255, 255, 255, 0.08);
    --badge-glass-border: rgba(255, 255, 255, 0.12);
    --badge-glass-text: #E2E8F0;

    --ambient-blob-1: #1E3A8A;
    --ambient-blob-2: #065F46;
    --ambient-blob-3: #4338CA;
    --blob-opacity: 0.35;
}

/* LIGHT THEME (CLEAN LIQUID SLATE) */
html[data-theme="light"],
body[data-theme="light"] {
    --bg-page: #F1F5F9;
    --bg-page-mesh: radial-gradient(circle at 10% 15%, #E2E8F0 0%, transparent 50%),
                    radial-gradient(circle at 90% 85%, #CCFBF1 0%, transparent 45%),
                    radial-gradient(circle at 50% 50%, #F8FAFC 0%, #E2E8F0 100%);
    
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.07);
    --card-border-glow: rgba(5, 150, 105, 0.18);
    --card-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.14), 0 0 1px 1px rgba(0, 0, 0, 0.04);

    --brand-side-bg: linear-gradient(155deg, #064e3b 0%, #059669 65%, #047857 100%);
    --brand-card-bg: rgba(255, 255, 255, 0.08);
    --brand-card-border: rgba(255, 255, 255, 0.16);
    --brand-card-hover: rgba(255, 255, 255, 0.14);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;

    --input-bg: rgba(248, 250, 252, 0.95);
    --input-border: rgba(148, 163, 184, 0.35);
    --input-border-focus: #059669;
    --input-focus-glow: rgba(5, 150, 105, 0.2);
    --input-text: #0F172A;
    --input-placeholder: #94A3B8;
    --input-icon: #94A3B8;
    --input-icon-focus: #059669;

    --btn-primary-start: #059669;
    --btn-primary-end: #047857;
    --btn-primary-glow: rgba(5, 150, 105, 0.3);

    --toggle-bg: rgba(255, 255, 255, 0.85);
    --toggle-border: rgba(0, 0, 0, 0.08);
    --toggle-text: #1E293B;
    --toggle-hover: rgba(0, 0, 0, 0.05);

    --badge-glass-bg: rgba(255, 255, 255, 0.12);
    --badge-glass-border: rgba(255, 255, 255, 0.2);
    --badge-glass-text: #FFFFFF;

    --ambient-blob-1: #BFDBFE;
    --ambient-blob-2: #A7F3D0;
    --ambient-blob-3: #DDD6FE;
    --blob-opacity: 0.55;
}

/* ===================================================================
   BASE & RESET
   =================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color var(--theme-transition), border-color var(--theme-transition), color var(--theme-transition);
}

body.login-body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    background-image: var(--bg-page-mesh);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-x: hidden;
    position: relative;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Floating Glow Blobs */
.ambient-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: var(--blob-opacity);
    transition: background 0.8s ease, opacity 0.8s ease;
    animation: blobFloating 22s infinite alternate var(--ease-smooth);
}

.blob-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--ambient-blob-1) 0%, transparent 70%);
    top: -15%;
    left: -10%;
    animation-duration: 24s;
}

.blob-2 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, var(--ambient-blob-2) 0%, transparent 70%);
    bottom: -15%;
    right: -5%;
    animation-duration: 28s;
    animation-delay: -6s;
}

.blob-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--ambient-blob-3) 0%, transparent 70%);
    top: 45%;
    left: 55%;
    animation-duration: 20s;
    animation-delay: -10s;
    opacity: calc(var(--blob-opacity) * 0.7);
}

@keyframes blobFloating {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(35px, -40px) scale(1.08); }
    100% { transform: translate(-25px, 25px) scale(0.95); }
}

/* ===================================================================
   FLOATING THEME TOGGLE
   =================================================================== */

.theme-toggle-btn {
    position: fixed;
    top: 1.75rem;
    right: 1.75rem;
    z-index: 50;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--toggle-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s var(--ease-expo), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.08) rotate(4deg);
    background: var(--toggle-hover);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.theme-toggle-btn:active {
    transform: scale(0.94);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease-expo);
}

.theme-toggle-btn:hover svg {
    transform: rotate(20deg);
}

/* ===================================================================
   SPLIT LOGIN CARD CONTAINER
   =================================================================== */

.split-login-container {
    display: flex;
    width: 100%;
    max-width: 980px;
    min-height: 570px;
    z-index: 10;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    animation: entranceFadeUp 0.75s var(--ease-expo) forwards;
}

@keyframes entranceFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ===================================================================
   BRAND SIDE (LEFT PANEL)
   =================================================================== */

.brand-side {
    flex: 1.15;
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--brand-side-bg);
    color: #FFFFFF;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle Geometric Grid & Circuit Glow */
.brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(6, 78, 59, 0.5) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M24 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-18V0h-2v2h-4v2h4v4h2V4h4V2h-4zM4 20v-4H2v4H0v2h2v4h2v-4h4v-2H4zM4 2V0H2v2H0v2h2v4h2V4h4V2H4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Brand Header */
.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.login-brand-logo-wrap {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #FFFFFF;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-expo), box-shadow 0.3s ease;
}

.login-brand-logo-wrap:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.4), 0 0 16px rgba(16, 185, 129, 0.4);
}

.login-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.brand-accent {
    color: #6EE7B7;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(110, 231, 183, 0.5);
}

.brand-subtitle {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    margin-top: 3px;
}

.brand-tagline {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.35rem;
}

/* Sucursal Context Telemetry Card */
.company-info-card {
    background: var(--brand-card-bg);
    border: 1px solid var(--brand-card-border);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.company-info-card:hover {
    background: var(--brand-card-hover);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.company-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.company-identity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite ease-out;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.company-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.badge-status-online {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #A7F3D0;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.45);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.info-full {
    grid-column: span 2;
}

.info-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 2px;
}

.info-label svg {
    opacity: 0.8;
}

.info-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF;
    word-break: break-word;
}

.info-value.small-address {
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.92;
}

/* Executive Brand Features List */
.brand-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.brand-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.feature-icon-bullet {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6EE7B7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.feature-sub {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.2;
}

/* Feature Badges Bottom Row */
.tech-badges {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--badge-glass-bg);
    border: 1px solid var(--badge-glass-border);
    color: var(--badge-glass-text);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.badge-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.badge-glass svg {
    color: #6EE7B7;
}

/* ===================================================================
   FORM SIDE (RIGHT PANEL)
   =================================================================== */

.form-side {
    flex: 1;
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.login-box {
    width: 100%;
    max-width: 350px;
}

/* Mobile Brand Header */
.mobile-brand-header {
    display: none;
    margin-bottom: 1.75rem;
    text-align: center;
}

.mobile-brand-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.login-brand-logo-mobile {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #FFFFFF;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-branch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.85rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 100%;
}

/* Form Heading */
.login-header {
    margin-bottom: 1.5rem;
}

.login-header-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.login-header-subtitle {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Error Message Banner */
.error-msg {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #EF4444;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    animation: shakeAlert 0.45s ease-in-out;
}

html[data-theme="dark"] .error-msg {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
}

.error-msg svg {
    flex-shrink: 0;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Form Fields */
.form-group-custom {
    margin-bottom: 1.15rem;
    position: relative;
}

.form-label-custom {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.input-container-glass {
    position: relative;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.input-container-glass:focus-within {
    border-color: var(--input-border-focus);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--input-focus-glow), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.input-icon-left {
    position: absolute;
    left: 1.1rem;
    color: var(--input-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.25s ease;
}

.input-container-glass:focus-within .input-icon-left {
    color: var(--input-icon-focus);
}

.form-control-glass {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--input-text) !important;
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    border-radius: 14px;
}

.form-control-glass::placeholder {
    color: var(--input-placeholder);
    opacity: 0.7;
    font-weight: 400;
}

.input-container-glass input:-webkit-autofill,
.input-container-glass input:-webkit-autofill:hover,
.input-container-glass input:-webkit-autofill:focus,
.input-container-glass input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--input-text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--input-border-focus);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid var(--input-border-focus);
    outline-offset: 2px;
}

.input-has-toggle .form-control-glass {
    padding-right: 3.25rem;
}

/* Caps Lock Warning Banner */
.caps-lock-warning {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    margin-top: 0.45rem;
    animation: fadeInQuick 0.2s ease;
}

@keyframes fadeInQuick {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Remember Me Checkbox */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    margin-top: 0.25rem;
}

.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.custom-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox-box svg {
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s var(--ease-expo);
    color: #FFFFFF;
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox-box {
    background: var(--input-border-focus);
    border-color: var(--input-border-focus);
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox-box svg {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox-label:hover .custom-checkbox-box {
    border-color: var(--input-border-focus);
}

/* Submit Button */
.btn-login-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px -6px var(--btn-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease-expo), box-shadow 0.25s ease, background 0.25s ease;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px var(--btn-primary-glow), 0 0 14px var(--btn-primary-glow);
    background: linear-gradient(135deg, #10B981 0%, var(--btn-primary-start) 100%);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.btn-login-submit svg {
    transition: transform 0.25s ease;
}

.btn-login-submit:hover svg {
    transform: translateX(3px);
}

/* Shimmer Highlight Effect */
.btn-login-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transition: 0.6s;
}

.btn-login-submit:hover::after {
    left: 100%;
}

/* Loading State */
.btn-login-submit.is-loading {
    pointer-events: none;
    opacity: 0.9;
}

.spinner-icon {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spinnerSpin 0.7s infinite linear;
}

@keyframes spinnerSpin {
    to { transform: rotate(360deg); }
}

/* System Meta Footer */
.login-footer-meta {
    margin-top: 1.5rem;
    text-align: center;
}

.version-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    margin-bottom: 0.45rem;
}

html[data-theme="dark"] .version-pill {
    background: rgba(255, 255, 255, 0.05);
}

.version-dot {
    opacity: 0.4;
}

.copyright-text {
    font-size: 0.72rem;
    color: var(--text-subtle);
}

/* ===================================================================
   RESPONSIVENESS & MEDIA QUERIES
   =================================================================== */

@media (max-width: 991px) {
    .split-login-container {
        max-width: 440px;
        min-height: auto;
        border-radius: 20px;
    }

    .brand-side {
        display: none !important;
    }

    .form-side {
        padding: 2.75rem 2rem;
    }

    .mobile-brand-header {
        display: block;
    }

    .theme-toggle-btn {
        top: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    body.login-body {
        padding: 1rem;
    }

    .split-login-container {
        border-radius: 18px;
    }

    .form-side {
        padding: 2.25rem 1.5rem;
    }

    .login-header-title {
        font-size: 1.35rem;
    }
}

/* Accessibility */
.d-none {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
