:root {
    --brand-primary: #FF6600;
    --brand-primary-hover: #E55C00;
    --brand-gradient: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    --brand-glow: rgba(255, 102, 0, 0.22);
    
    --dark-bg: #0b0f19;
    --dark-surface: #111827;
    --dark-surface-2: #1e293b;
    --dark-border: rgba(255, 255, 255, 0.08);
    
    --light-bg: #ffffff;
    --light-surface: #f8fafc;
    --border-light: #e2e8f0;
    --border-focus: #FF6600;
    
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.07);
    --shadow-btn: 0 10px 20px -5px rgba(255, 102, 0, 0.35);
}

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

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.login-page-split {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-body);
    display: flex;
    overflow-x: hidden;
}

/* Split Layout Container */
.auth-split-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ====================================================
   LEFT COLUMN: Enterprise Hero & Brand Showcase
==================================================== */
.auth-hero-panel {
    flex: 1.15;
    background: radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.16) 0%, transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.14) 0%, transparent 45%),
                linear-gradient(160deg, #090d16 0%, #0f172a 60%, #151f33 100%);
    position: relative;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #ffffff;
}

/* Architectural grid background */
.auth-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    pointer-events: none;
}

/* Top Branding */
.hero-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-emtek-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f1f5f9;
}

.hero-brand-badge .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 2rem 0;
}

.hero-subtitle-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FF8533;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hero-title {
    font-size: 2.4rem;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.15rem;
    color: #ffffff;
}

.hero-description {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Feature Badges */
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 102, 0, 0.4);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(255, 102, 0, 0.2);
    border: 1px solid rgba(255, 102, 0, 0.35);
    color: #FF8533;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.feature-text-wrap strong {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2px;
}

.feature-text-wrap span {
    font-size: 0.725rem;
    color: #94a3b8;
}

/* Hero Network Logos Footer */
.hero-footer {
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-footer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.hero-networks-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.network-badge {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    height: 34px;
    transition: all 0.2s ease;
}

.network-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.network-badge img {
    height: 18px;
    width: auto;
    object-fit: contain;
}


/* ====================================================
   RIGHT COLUMN: Modern Clean Auth Portal
==================================================== */
.auth-form-panel {
    flex: 1;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow-y: auto;
}

.auth-card-inner {
    width: 100%;
    max-width: 400px;
    animation: fadeInSlide 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand logo on Auth card */
.auth-card-brand {
    margin-bottom: 1.5rem;
}

.auth-card-brand img {
    height: 32px;
    width: auto;
}

/* Form Top Identity */
.auth-header {
    margin-bottom: 2rem;
    text-align: left;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Flash Alert */
.auth-flash-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #f43f5e;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 1.5rem;
    color: #9f1239;
    font-size: 0.85rem;
    line-height: 1.45;
}

.auth-flash-alert i {
    font-size: 1.15rem;
    color: #e11d48;
    margin-top: 1px;
}

.auth-flash-alert strong {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

/* Form Fields */
.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-label-modern {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.45rem;
    letter-spacing: -0.01em;
}

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

.input-icon-left {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.input-field-modern {
    width: 100%;
    height: 46px;
    padding: 10px 14px 10px 42px;
    background-color: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.925rem;
    font-family: inherit;
    color: var(--text-heading);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-field-modern::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-field-modern:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3.5px var(--brand-glow);
}

.input-field-modern:focus ~ .input-icon-left {
    color: var(--brand-primary);
}

/* Password Visibility Toggle */
.toggle-password-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.95rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.toggle-password-btn:hover {
    color: var(--text-heading);
    background-color: #e2e8f0;
}

/* Submit Button */
.btn-submit-modern {
    width: 100%;
    height: 48px;
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-btn);
    transition: all 0.25s ease;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(255, 102, 0, 0.45);
    filter: brightness(1.04);
}

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

/* Portal Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.775rem;
    color: var(--text-muted);
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
}

.security-badge i {
    font-size: 0.85rem;
}

/* Mobile Partner Logos (hidden by default on desktop) */
.mobile-partner-logos {
    display: none;
}

/* ====================================================
   RESPONSIVE DESIGN (Tablets & Mobile Phones)
==================================================== */
@media (max-width: 991px) {
    .auth-hero-panel {
        display: none !important;
    }

    body.login-page-split {
        background-color: #f1f5f9;
        display: block;
        min-height: 100vh;
        overflow-y: auto;
    }

    .auth-split-wrapper {
        min-height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
    }

    .auth-form-panel {
        background: transparent;
        padding: 0;
        width: 100%;
        max-width: 400px;
        flex: none;
        overflow-y: visible;
    }

    .auth-card-inner {
        background-color: #ffffff;
        padding: 2.25rem 1.5rem;
        border-radius: var(--radius-xl);
        box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-light);
        width: 100%;
        max-width: 100%;
    }

    .auth-card-brand {
        text-align: center;
    }

    .auth-card-brand img {
        margin: 0 auto;
    }

    .auth-header {
        text-align: center;
    }

    .mobile-partner-logos {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--border-light);
    }

    .mobile-partner-logos .network-badge {
        height: 32px;
        padding: 4px 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-light);
    }

    .mobile-partner-logos .network-badge img {
        height: 16px;
        width: auto;
        object-fit: contain;
    }

    .auth-footer {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-split-wrapper {
        padding: 1rem 0.5rem;
    }

    .auth-card-inner {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

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