/* ==========================================================================
   Zaffer-System — Ultra-Modern Luxury Login Experience
   البيت البغدادي للسيراميك للتخليص الكمركي
   ========================================================================== */

:root {
    --font-primary: 'Cairo', system-ui, -apple-system, sans-serif;
    
    /* Luxury Cosmic Palette */
    --bg-space: #070a14;
    --bg-dark-mesh: #0b1120;
    --card-surface: rgba(15, 23, 42, 0.72);
    --card-surface-hover: rgba(22, 33, 58, 0.85);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-border-glow: rgba(99, 102, 241, 0.35);
    
    /* Vibrant Neon Accents */
    --primary-indigo: #6366f1;
    --primary-violet: #8b5cf6;
    --primary-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    /* Text Hierarchy */
    --text-pure: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    /* Shadows & Transitions */
    --shadow-deep: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 50px rgba(99, 102, 241, 0.12);
    --shadow-btn: 0 10px 30px -5px rgba(99, 102, 241, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-btn-hover: 0 16px 36px -4px rgba(99, 102, 241, 0.65), 0 0 28px rgba(139, 92, 246, 0.45);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-primary);
    background-color: var(--bg-space);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Ambient Scene (Lighting, Orbs, Cyber Grid & Vignette)
   ========================================================================== */
.ambient-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Animated Aurora Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    will-change: transform;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-primary {
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(139, 92, 246, 0.15) 60%, transparent 80%);
    top: -120px;
    right: -100px;
    animation-duration: 16s;
}

.orb-secondary {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(236, 72, 153, 0.1) 60%, transparent 80%);
    bottom: -150px;
    left: -120px;
    animation-duration: 20s;
    animation-delay: -5s;
}

.orb-tertiary {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 80%);
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    animation-duration: 24s;
    animation-delay: -10s;
}

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

/* Cyber Perspective Grid Overlay */
.cyber-grid {
    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: 48px 48px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

/* Floating Starlight Motes */
.light-mote {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px var(--primary-indigo);
    animation: moteFloat 10s ease-in-out infinite;
}

.mote-1 { width: 4px; height: 4px; top: 25%; right: 18%; opacity: 0.7; animation-delay: 0s; animation-duration: 9s; }
.mote-2 { width: 6px; height: 6px; top: 65%; right: 40%; opacity: 0.5; animation-delay: 2s; animation-duration: 11s; }
.mote-3 { width: 3px; height: 3px; top: 15%; left: 30%; opacity: 0.8; animation-delay: 4s; animation-duration: 8s; }
.mote-4 { width: 5px; height: 5px; top: 75%; left: 15%; opacity: 0.6; animation-delay: 1s; animation-duration: 12s; }
.mote-5 { width: 4px; height: 4px; top: 45%; right: 10%; opacity: 0.5; animation-delay: 3s; animation-duration: 10s; }

@keyframes moteFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-40px) scale(1.4); opacity: 0.85; }
}

.ambient-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(7, 10, 20, 0.75) 100%);
}

/* ==========================================================================
   Viewport & Master Layout Split Card
   ========================================================================== */
.login-viewport {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.login-split-card {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    width: 100%;
    max-width: 1180px;
    min-height: 680px;
    background: rgba(13, 20, 36, 0.6);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.8s var(--ease-smooth);
}

/* Subtle Card Top Highlight Sheen */
.login-split-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 40%, rgba(99, 102, 241, 0.5) 60%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Right Panel — Brand Hero Showcase
   ========================================================================== */
.brand-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 44px;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(99, 102, 241, 0.03) 100%);
}

/* Top System Badge */
.hero-top-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
    margin-bottom: 24px;
}

.pulse-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

.pulse-core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

.pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent-emerald);
    animation: ringPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    opacity: 0.8;
}

@keyframes ringPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.badge-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.2px;
}

/* Luxury Brand Emblem Presentation */
.emblem-display {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.emblem-halo {
    position: absolute;
    inset: -12px;
    border-radius: 34px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(99, 102, 241, 0.25) 50%, transparent 75%);
    filter: blur(16px);
    animation: haloGlow 4s ease-in-out infinite alternate;
}

@keyframes haloGlow {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.12); opacity: 0.95; }
}

.emblem-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 28px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 14px 34px rgba(0, 0, 0, 0.35),
        0 0 0 1.5px rgba(245, 158, 11, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s ease;
}

.emblem-frame:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 
        0 20px 42px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(245, 158, 11, 0.8),
        0 0 24px rgba(245, 158, 11, 0.35);
}

.emblem-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* Hero Typography Block */
.hero-text-block {
    margin-bottom: 28px;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-title {
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-pure);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-indigo);
    margin-bottom: 12px;
}

.hero-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

/* Feature Mini Cards Grid */
.hero-features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.25s var(--ease-smooth);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateX(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-icon-box .material-symbols-rounded {
    font-size: 22px;
}

.ic-indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.35));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.ic-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.ic-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.feature-info h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 2px;
}

.feature-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Trust Bar */
.hero-trust-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}

.trust-item .material-symbols-rounded {
    font-size: 16px;
    color: var(--accent-emerald);
}

/* ==========================================================================
   Left Panel — Login Form Console
   ========================================================================== */
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: rgba(11, 17, 32, 0.7);
    position: relative;
}

.form-glass-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* Shake Animation on Form Error */
.shake-card {
    animation: cardShake 0.4s var(--ease-smooth);
}

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

/* Form Header */
.form-header-box {
    text-align: center;
    margin-bottom: 30px;
}

.form-shield-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border: 1.5px solid rgba(99, 102, 241, 0.45);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.form-shield-badge:hover {
    transform: scale(1.08) rotate(-4deg);
}

.form-shield-badge .material-symbols-rounded {
    font-size: 30px;
    color: #c7d2fe;
}

.form-headline {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 6px;
}

.form-subheadline {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Form Fields */
.portal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #e2e8f0;
}

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

.field-icon {
    position: absolute;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.field-icon .material-symbols-rounded {
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.form-input-container input {
    width: 100%;
    height: 52px;
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0 54px 0 18px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    color: var(--text-pure);
    direction: rtl;
    transition: all 0.25s ease;
}

.form-input-container input::placeholder {
    color: rgba(148, 163, 184, 0.45);
    font-size: 0.88rem;
}

.form-input-container input:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(22, 33, 58, 0.6);
}

.form-input-container input:focus {
    outline: none;
    border-color: var(--primary-indigo);
    background: rgba(30, 41, 69, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22), 0 8px 24px rgba(99, 102, 241, 0.15);
}

.form-input-container:focus-within .field-icon {
    background: rgba(99, 102, 241, 0.2);
}

.form-input-container:focus-within .field-icon .material-symbols-rounded {
    color: #a5b4fc;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    left: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.password-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-pure);
}

.password-toggle-btn .material-symbols-rounded {
    font-size: 20px;
}

/* Options Row */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

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

.checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-box .material-symbols-rounded {
    font-size: 15px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s var(--ease-out-back);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-box {
    background: var(--primary-indigo);
    border-color: var(--primary-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

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

.checkbox-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.security-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    color: var(--text-subtle);
    font-weight: 600;
}

.security-chip .material-symbols-rounded {
    font-size: 15px;
    color: var(--accent-cyan);
}

/* Error Alert */
.portal-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    animation: alertSlideDown 0.3s var(--ease-smooth);
}

.error-alert {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fecdd3;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.15);
}

.alert-icon {
    font-size: 20px;
    color: var(--accent-rose);
    flex-shrink: 0;
}

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

/* Submit Button */
.portal-submit-btn {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-btn);
    transition: all 0.3s var(--ease-smooth);
    margin-top: 6px;
}

/* Shimmer Sweep Animation */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.portal-submit-btn:hover .btn-shimmer {
    left: 140%;
}

.portal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
    border-color: rgba(255, 255, 255, 0.4);
}

.portal-submit-btn:active {
    transform: translateY(1px) scale(0.99);
}

.portal-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.25s ease;
}

.portal-submit-btn:hover .btn-arrow {
    transform: translateX(-4px);
}

/* Button Success State */
.portal-submit-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5) !important;
}

/* Button Loading State */
.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.75s linear infinite;
}

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

/* Footer & Support Information */
.portal-card-footer {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.developer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dev-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dev-logo-mark .material-symbols-rounded {
    font-size: 16px;
    color: var(--primary-indigo);
}

.dev-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.dev-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.dev-phone {
    font-size: 0.78rem;
    color: var(--accent-amber);
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
}

.dev-phone:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

.dev-phone .material-symbols-rounded {
    font-size: 13px;
}

.portal-version-meta {
    font-size: 0.72rem;
    color: var(--text-subtle);
    font-weight: 600;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
    .login-split-card {
        max-width: 980px;
        grid-template-columns: 1.1fr 1fr;
    }
    
    .brand-hero-panel {
        padding: 36px 32px;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .login-form-panel {
        padding: 36px 32px;
    }
}

@media (max-width: 880px) {
    .login-viewport {
        padding: 16px;
    }
    
    .login-split-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
        min-height: auto;
    }
    
    .brand-hero-panel {
        padding: 32px 24px 24px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
        align-items: center;
    }
    
    .hero-top-badge {
        align-self: center;
    }
    
    .emblem-display {
        margin: 0 auto 18px;
        width: 100px;
        height: 100px;
    }
    
    .hero-tagline {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.65rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-features-grid {
        display: none; /* Hide heavy feature list on mobile to prioritize fast login */
    }
    
    .hero-trust-bar {
        justify-content: center;
        padding-top: 14px;
    }
    
    .login-form-panel {
        padding: 32px 24px;
    }
    
    .form-glass-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-viewport {
        padding: 10px;
    }
    
    .login-split-card {
        border-radius: 20px;
    }
    
    .brand-hero-panel {
        padding: 24px 16px 16px;
    }
    
    .hero-title {
        font-size: 1.45rem;
    }
    
    .hero-description {
        display: none;
    }
    
    .login-form-panel {
        padding: 24px 16px;
    }
    
    .form-headline {
        font-size: 1.35rem;
    }
    
    .form-input-container input {
        height: 48px;
        font-size: 0.9rem;
    }
    
    .portal-submit-btn {
        height: 50px;
        font-size: 0.95rem;
    }
    
    .dev-details {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================================
   PWA Mobile Install Promotion Banner
   ========================================================================== */
.zaffer-pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 12px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 99999;
    direction: rtl;
    animation: slideUpPwa 0.4s var(--ease-out-back);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.zaffer-pwa-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.zaffer-pwa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.zaffer-pwa-info {
    min-width: 0;
}

.zaffer-pwa-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.zaffer-pwa-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zaffer-pwa-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.zaffer-pwa-install-btn {
    padding: 8px 16px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease;
}

.zaffer-pwa-install-btn:hover {
    transform: scale(1.04);
}

.zaffer-pwa-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.zaffer-pwa-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
