/* NIMROD Ops - Enterprise Login UI v3 */
/* Extracted from login.html for maintainability */
/* Auto-generated 2026-06-20 */

/* ═══════════════════════════════════════════════════
       NIMROD OPS — Enterprise Login UI v3 (Bilingual)
       ═══════════════════════════════════════════════════ */

    :root {
      --brand-primary: #EC6A4A;
      --brand-accent: #F0A94B;
      --brand-deep: #8F2E15;
      --err-bg: rgba(234,84,85,0.08);
      --err-border: rgba(234,84,85,0.2);
      --success-color: #28C76F;
      --glass-bg: rgba(255,255,255,0.06);
      --glass-border: rgba(255,255,255,0.08);
      --transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    *, *::before, *::after { box-sizing: border-box; }
    body {
      font-family: var(--bs-font-sans-serif);
      background: var(--bs-paper-bg);
      overflow-y: auto;
      overflow-x: hidden;
    }
    html { overflow-y: auto; }

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

    /* ═══ LAYOUT ═══ */
    .auth-shell {
      display: flex;
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
    }

    /* ── FORM PANEL ── */
    .form-panel {
      flex: 0 0 440px;
      width: 440px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem 2.5rem;
      background: var(--bs-paper-bg);
      position: relative;
      z-index: 2;
    }
    [dir="rtl"] .form-panel { box-shadow: -8px 0 40px rgba(0,0,0,0.06); }
    [dir="ltr"] .form-panel { box-shadow: 8px 0 40px rgba(0,0,0,0.06); }
    .form-inner { width: 100%; max-width: 400px; }

    /* ── COVER PANEL ── */
    .cover-panel {
      flex: 1;
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #0a0a1a 0%, #0d1b3e 20%, #1a0a2e 40%, #0f3460 60%, #0a0a1a 100%);
      display: flex; align-items: center; justify-content: center;
      z-index: 1;
    }
    .cover-panel::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 50px 50px;
      z-index: 0;
    }

    /* ── Orbs ── */
    .cover-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; z-index: 0; }
    .cover-orb-1 { width: 600px; height: 600px; background: #EC6A4A; top: -15%; }
    [dir="rtl"] .cover-orb-1 { right: -20%; }
    [dir="ltr"] .cover-orb-1 { left: -20%; }
    .cover-orb-2 { width: 400px; height: 400px; background: #0f3460; bottom: -10%; }
    [dir="rtl"] .cover-orb-2 { left: -10%; }
    [dir="ltr"] .cover-orb-2 { right: -10%; }
    .cover-orb-3 { width: 250px; height: 250px; background: #F0A94B; top: 40%; opacity: 0.08; }
    [dir="rtl"] .cover-orb-3 { left: 30%; }
    [dir="ltr"] .cover-orb-3 { right: 30%; }

    .cover-content { position: relative; z-index: 2; text-align: center; padding: 1.5rem 2rem; max-width: 520px; }

    /* ── SVG Illustration ── */
    .cover-illustration { display: none; }

    .cover-title { font-family: 'Amiri', serif; font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
    .cover-subtitle { font-size: 0.95rem; color: rgba(255,255,255,0.5); margin-bottom: 2.5rem; line-height: 1.7; }

    /* ── System Status ── */
    .sys-status {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 5px 14px; border-radius: 50px;
      background: rgba(40,199,111,0.08); border: 1px solid rgba(40,199,111,0.15);
      margin-bottom: 1rem;
    }
    .sys-dot { width: 6px; height: 6px; border-radius: 50%; background: #28C76F; position: relative; }
    .sys-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: #28C76F; opacity: 0.3; animation: ping 2s ease-in-out infinite; }
    @keyframes ping {
      0%, 100% { transform: scale(1); opacity: 0.3; }
      50% { transform: scale(2.5); opacity: 0; }
    }
    .sys-status span { font-size: 0.72rem; color: rgba(255,255,255,0.75); font-weight: 500; }

    /* ── Stats ── */
    .cover-stats { display: flex; gap: 2rem; justify-content: center; padding-top: 0.85rem; margin-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.06); }
    .cover-stat { text-align: center; }
    .cover-stat-icon { display: block; margin-bottom: 0.2rem; font-size: 1.1rem; }
    .cover-stat-icon i { color: rgba(240,169,75,0.6); filter: drop-shadow(0 0 8px rgba(240,169,75,0.2)); }
    .cover-stat-num { font-size: 1.1rem; font-weight: 800; color: #F0A94B; display: block; line-height: 1.1; margin-bottom: 2px; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(240,169,75,0.15); }
    .cover-stat-label { font-size: 0.62rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.8px; }

    /* ═══ FORM ELEMENTS ═══ */
    .brand-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.85rem; }
    .brand-mark {
      width: 36px; height: 36px; border-radius: 10px;
      background: linear-gradient(135deg, #F0A94B, #D95032);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      box-shadow: 0 6px 16px rgba(236,106,74,0.25);
    }
    .brand-mark svg { width: 22px; height: 22px; }
    .brand-text h6 { margin: 0; font-size: 0.9rem; font-weight: 700; font-family: 'Amiri', serif; color: var(--bs-heading-color); }
    .brand-text small { font-size: 0.65rem; color: var(--bs-body-color); opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; }

    .greeting { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.15rem; color: var(--bs-heading-color); }
    .greeting-sub { font-size: 0.78rem; color: var(--bs-body-color); opacity: 0.6; margin-bottom: 0.85rem; }

    /* ── Fields ── */
    .ef-field { position: relative; margin-bottom: 0.7rem; }
    .ef-label { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 0.25rem; }
    [dir="rtl"] .ef-label { padding-right: 4px; }
    [dir="ltr"] .ef-label { padding-left: 4px; }
    .ef-input-wrap { position: relative; }
    .ef-icon { position: absolute; top: 0; width: 52px; height: 100%; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 3; }
    [dir="rtl"] .ef-icon { right: 0; }
    [dir="ltr"] .ef-icon { left: 0; }
    .ef-icon i { color: #b0b0b8; font-size: 1.1rem; transition: color var(--transition-smooth); }
    .ef-input {
      width: 100%; height: 44px; font-size: 0.9rem;
      border: 2px solid transparent; border-radius: 12px;
      background: var(--bs-body-bg, #f4f5fa); color: var(--bs-heading-color); outline: none;
      transition: all var(--transition-smooth);
    }
    [dir="rtl"] .ef-input { padding: 0 52px 0 16px; }
    [dir="ltr"] .ef-input { padding: 0 16px 0 52px; }
    .ef-input::placeholder { color: #b0b0b8; font-size: 0.9rem; }
    .ef-input:focus {
      background: var(--bs-paper-bg, #fff); border-color: var(--brand-accent);
      box-shadow: 0 0 0 3px rgba(236,106,74,0.06), 0 4px 12px rgba(236,106,74,0.04);
    }
    .ef-input:focus ~ .ef-icon i { color: var(--brand-accent); }
    .ef-input.input-error { border-color: #ea5455; box-shadow: 0 0 0 4px rgba(234,84,85,0.06); }

    /* ── Caps Lock ── */
    .caps-warning { display: none; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.75rem; color: #ff9f43; padding: 6px 12px; border-radius: 8px; background: rgba(255,159,67,0.06); animation: fadeUp 0.25s ease-out; }
    .caps-warning i { font-size: 0.9rem; }

    /* ── Password Toggle ── */
    .pw-toggle {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
      width: 36px; height: 36px; border-radius: 8px; border: none; background: transparent;
      cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    }
    [dir="rtl"] .pw-toggle { left: 12px; }
    [dir="ltr"] .pw-toggle { right: 12px; }
    .pw-toggle:hover { background: rgba(236,106,74,0.08); }
    .pw-toggle i { font-size: 1.1rem; color: #b0b0b8; transition: color 0.2s; }
    .pw-toggle:hover i { color: var(--brand-accent); }

    /* ── Remember Me + Forgot ── */
    .remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
    .toggle-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
    .toggle-track { width: 42px; height: 24px; border-radius: 24px; background: #d4d4d8; transition: background var(--transition-smooth); position: relative; }
    .toggle-track::after { content: ''; position: absolute; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--transition-smooth); box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
    [dir="rtl"] .toggle-track::after { left: 3px; }
    [dir="ltr"] .toggle-track::after { right: 3px; }
    .toggle-switch input:checked + .toggle-track { background: var(--brand-accent); }
    [dir="rtl"] .toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }
    [dir="ltr"] .toggle-switch input:checked + .toggle-track::after { transform: translateX(-18px); }
    .toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
    .toggle-label { font-size: 0.8rem; color: var(--bs-body-color); opacity: 0.7; }
    .forgot-link { font-size: 0.8rem; color: var(--brand-primary); text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
    .forgot-link:hover { opacity: 0.7; }

    /* ── Submit Button ── */
    .btn-enterprise {
      width: 100%; height: 44px; border: none; border-radius: 11px; font-size: 0.92rem; font-weight: 700; color: #fff;
      background: linear-gradient(135deg, #F0A94B 0%, #D95032 100%); cursor: pointer; position: relative; overflow: hidden;
      transition: all var(--transition-smooth); display: flex; align-items: center; justify-content: center; gap: 6px;
    }
    .btn-enterprise::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%); transition: opacity 0.4s; opacity: 0; }
    .btn-enterprise:hover::before { opacity: 1; }
    .btn-enterprise:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(236,106,74,0.35), 0 4px 12px rgba(236,106,74,0.2); }
    .btn-enterprise:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 12px rgba(236,106,74,0.25); }
    .btn-enterprise:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
    .btn-enterprise:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
    .btn-spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%; animation: spinner 0.7s linear infinite; display: none; }
    .btn-enterprise.loading .btn-spinner { display: block; }
    .btn-enterprise.loading .btn-text { display: none; }
    @keyframes spinner { to { transform: rotate(360deg); } }

    /* ── Error + Rate Cards ── */
    .err-card, .rate-card { border-radius: 14px; padding: 14px 18px; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 12px; }
    .err-card { background: var(--err-bg); border: 1px solid var(--err-border); animation: shake 0.5s ease-in-out, fadeUp 0.4s ease-out; }
    .rate-card { background: rgba(255,159,67,0.06); border: 1px solid rgba(255,159,67,0.15); animation: fadeUp 0.4s ease-out; }
    .err-dot, .rate-dot { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .err-dot { background: rgba(234,84,85,0.15); }
    .rate-dot { background: rgba(255,159,67,0.12); }
    .err-dot i { color: #ea5455; font-size: 1.2rem; }
    .rate-dot i { color: #ff9f43; font-size: 1.2rem; }
    .err-body { flex: 1; }
    .err-title { font-size: 0.85rem; font-weight: 600; color: #ea5455; margin-bottom: 2px; }
    .err-detail { font-size: 0.78rem; color: var(--bs-body-color); opacity: 0.7; }
    .rate-timer { font-weight: 700; color: #ff9f43; font-variant-numeric: tabular-nums; }

    /* ── Validation hint ── */
    .val-hint { font-size: 0.72rem; color: #ea5455; margin-top: 4px; display: none; animation: fadeUp 0.2s ease-out; }
    [dir="rtl"] .val-hint { padding-right: 4px; }
    [dir="ltr"] .val-hint { padding-left: 4px; }

    /* ── Success overlay ── */
    .success-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease-out; }
    .success-overlay.show { opacity: 1; }
    .success-check { width: 100px; height: 100px; border-radius: 50%; background: var(--success-color); display: flex; align-items: center; justify-content: center; animation: scaleIn 0.5s cubic-bezier(0.22,1,0.36,1); }
    .success-check i { color: #fff; font-size: 3rem; }

    /* ── Footer ── */
    .auth-footer { margin-top: 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .secure-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 50px; background: rgba(40,199,111,0.06); border: 1px solid rgba(40,199,111,0.12); font-size: 0.65rem; color: var(--success-color); font-weight: 500; }
    .secure-badge i { font-size: 0.85rem; }
    .legal-links { display: flex; gap: 0.75rem; font-size: 0.64rem; }
    .legal-links a { color: var(--bs-body-color); opacity: 0.4; text-decoration: none; transition: opacity 0.2s; }
    .legal-links a:hover { opacity: 0.7; }
    .copyright { font-size: 0.62rem; color: var(--bs-body-color); opacity: 0.35; }

    /* ── Version Badge ── */
    .version-badge { position: fixed; bottom: 8px; font-size: 0.6rem; padding: 2px 8px; border-radius: 5px; background: rgba(0,0,0,0.04); color: var(--bs-body-color); opacity: 0.3; z-index: 5; font-family: 'SF Mono', 'JetBrains Mono', monospace; }
    [dir="rtl"] .version-badge { left: 16px; }
    [dir="ltr"] .version-badge { right: 16px; }
    [data-bs-theme="dark"] .version-badge { background: rgba(255,255,255,0.04); }

    /* ═══ ANIMATIONS ═══ */
    @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
    @keyframes shake { 0%, 100% { transform: translateX(0); } 15%, 55% { transform: translateX(-5px); } 35%, 75% { transform: translateX(5px); } }

    /* Entrance: form slides in from edges */
    [dir="rtl"] .anim-brand    { animation: slideInRTL 0.6s cubic-bezier(0.22,1,0.36,1) both; }
    [dir="rtl"] .anim-greeting { animation: slideInRTL 0.6s cubic-bezier(0.22,1,0.36,1) 0.08s both; }
    [dir="rtl"] .anim-field-1  { animation: slideInRTL 0.6s cubic-bezier(0.22,1,0.36,1) 0.16s both; }
    [dir="rtl"] .anim-field-2  { animation: slideInRTL 0.6s cubic-bezier(0.22,1,0.36,1) 0.22s both; }
    [dir="rtl"] .anim-row      { animation: slideInRTL 0.6s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
    [dir="rtl"] .anim-btn      { animation: slideInRTL 0.6s cubic-bezier(0.22,1,0.36,1) 0.34s both; }
    [dir="ltr"] .anim-brand    { animation: slideInLTR 0.6s cubic-bezier(0.22,1,0.36,1) both; }
    [dir="ltr"] .anim-greeting { animation: slideInLTR 0.6s cubic-bezier(0.22,1,0.36,1) 0.08s both; }
    [dir="ltr"] .anim-field-1  { animation: slideInLTR 0.6s cubic-bezier(0.22,1,0.36,1) 0.16s both; }
    [dir="ltr"] .anim-field-2  { animation: slideInLTR 0.6s cubic-bezier(0.22,1,0.36,1) 0.22s both; }
    [dir="ltr"] .anim-row      { animation: slideInLTR 0.6s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
    [dir="ltr"] .anim-btn      { animation: slideInLTR 0.6s cubic-bezier(0.22,1,0.36,1) 0.34s both; }

    .anim-footer    { animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.5s both; }
    .anim-cover     { animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s both; }
    .anim-cover-s   { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.5s both; }

    @keyframes slideInRTL { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes slideInLTR { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

    /* ═══ DARK MODE ═══ */
    [data-bs-theme="dark"] .form-panel { background: var(--bs-body-bg); }
    [dir="rtl"] [data-bs-theme="dark"] .form-panel { box-shadow: -8px 0 40px rgba(0,0,0,0.3); }
    [dir="ltr"] [data-bs-theme="dark"] .form-panel { box-shadow: 8px 0 40px rgba(0,0,0,0.3); }
    [data-bs-theme="dark"] .ef-input, [data-bs-theme="dark"] .ef-input:focus { color: var(--bs-body-color); }
    [data-bs-theme="dark"] .ef-input::placeholder { color: #6e6e7a; }
    [data-bs-theme="dark"] .ef-input:focus { background: var(--bs-body-bg); }
    [data-bs-theme="dark"] .err-card { background: rgba(234,84,85,0.1); border-color: rgba(234,84,85,0.25); }
    [data-bs-theme="dark"] .rate-card { background: rgba(255,159,67,0.08); border-color: rgba(255,159,67,0.2); }
    [data-bs-theme="dark"] .secure-badge { background: rgba(40,199,111,0.08); border-color: rgba(40,199,111,0.15); }
    [data-bs-theme="dark"] .success-overlay { background: rgba(0,0,0,0.85); }
    [data-bs-theme="dark"] .toggle-track { background: #555; }
    [data-bs-theme="dark"] .pw-toggle:hover { background: rgba(236,106,74,0.12); }
    [data-bs-theme="dark"] .caps-warning { background: rgba(255,159,67,0.08); }
    [data-bs-theme="dark"] input[type="date"] { color-scheme: dark; }

    /* ═══ EPIC COVER - Particles, Glow, Constellation ═══ */
    .cover-panel::after {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 800px 600px at 50% 30%, rgba(236,106,74,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 70% 70%, rgba(240,169,75,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 400px 300px at 20% 50%, rgba(15,52,96,0.3) 0%, transparent 50%);
      z-index: 0;
      pointer-events: none;
    }
    .cover-aurora {
      position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
    }
    .cover-aurora-band {
      position: absolute; width: 200%; height: 60px;
      background: linear-gradient(90deg, transparent 0%, rgba(40,199,111,0.03) 20%, rgba(240,169,75,0.04) 40%, rgba(236,106,74,0.03) 60%, transparent 80%);
      filter: blur(40px);
      animation: auroraDrift 8s ease-in-out infinite alternate;
    }
    .cover-aurora-band:nth-child(1) { top: 20%; animation-delay: 0s; height: 80px; }
    .cover-aurora-band:nth-child(2) { top: 55%; animation-delay: -3s; height: 50px; width: 150%; }
    .cover-aurora-band:nth-child(3) { top: 75%; animation-delay: -6s; height: 40px; width: 180%; }
    @keyframes auroraDrift {
      0% { transform: translateX(-20%) translateY(0); opacity: 0.3; }
      50% { transform: translateX(10%) translateY(-10px); opacity: 0.6; }
      100% { transform: translateX(-5%) translateY(5px); opacity: 0.3; }
    }

    /* Glow edge */
    .cover-panel .cover-glow-edge {
      position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
    }
    .cover-panel .cover-glow-edge::before {
      content: '';
      position: absolute;
      top: -1px; left: 10%; right: 10%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(240,169,75,0.2), rgba(236,106,74,0.3), rgba(240,169,75,0.2), transparent);
      animation: edgeGlow 3s ease-in-out infinite alternate;
    }
    @keyframes edgeGlow {
      0% { opacity: 0.3; transform: scaleX(0.8); }
      100% { opacity: 1; transform: scaleX(1.2); }
    }

    /* Pulsing core glow */
    .cover-core-pulse {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 200px; height: 200px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(240,169,75,0.04) 0%, rgba(236,106,74,0.02) 30%, transparent 70%);
      z-index: 0;
      animation: corePulse 3s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes corePulse {
      0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
      50% { transform: translate(-50%, -50%) scale(1.8); opacity: 0.8; }
    }

    /* Hex pattern overlay */
    .cover-hex-overlay {
      position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0.03;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='69' viewBox='0 0 60 69'%3E%3Cpath d='M30 0l30 17.25v34.5L30 69 0 51.75V17.25z' fill='none' stroke='%23F0A94B' stroke-width='0.5'/%3E%3C/svg%3E");
      background-size: 60px 69px;
    }

    /* Cover title glow */
    .cover-title {
      font-family: 'Amiri', serif; font-size: 1.5rem; font-weight: 700;
      color: #fff; margin-bottom: 0.35rem; letter-spacing: -0.3px;
      text-shadow: 0 0 30px rgba(240,169,75,0.1), 0 0 60px rgba(236,106,74,0.05);
    }

    /* Typing text effect */
    .cover-subtitle {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.5);
      margin-bottom: 1rem;
      line-height: 1.5;
      min-height: 1.5em;
      max-width: 80%;
      margin-left: auto;
      margin-right: auto;
    }
    .cover-subtitle .cursor-blink {
      display: inline-block;
      width: 2px; height: 1em;
      background: rgba(240,169,75,0.6);
      margin-left: 2px;
      animation: cursorBlink 1s steps(2) infinite;
      vertical-align: text-bottom;
    }
    @keyframes cursorBlink { 0% { opacity: 1; } 50% { opacity: 0; } }

    /* Floating data nodes */
    .float-node {
      position: absolute; z-index: 1; pointer-events: none;
      border-radius: 50%;
      border: 1px solid rgba(240,169,75,0.1);
      background: rgba(240,169,75,0.02);
      animation: nodeFloat 6s ease-in-out infinite alternate;
    }
    .float-node:nth-child(1) { width: 40px; height: 40px; top: 15%; left: 10%; animation-delay: 0s; }
    .float-node:nth-child(2) { width: 30px; height: 30px; top: 60%; right: 15%; animation-delay: -2s; }
    .float-node:nth-child(3) { width: 50px; height: 50px; bottom: 10%; left: 15%; animation-delay: -4s; }
    .float-node:nth-child(4) { width: 20px; height: 20px; top: 30%; right: 25%; animation-delay: -1s; }
    @keyframes nodeFloat {
      0% { transform: translateY(0) scale(1); opacity: 0.2; }
      100% { transform: translateY(-20px) scale(1.1); opacity: 0.4; }
    }

    .cover-title .title-accent { color: #F0A94B; }


    /* ═══ MOBILE ═══ */
    @media (max-width: 991.98px) {
      .auth-shell { flex-direction: column; min-height: auto; }
      /* Cover panel: slim header bar */
      .cover-panel { flex: 0 0 auto; min-height: 0; padding: 0; background: linear-gradient(135deg, #0a0a1a 0%, #0d1b3e 100%); }
      .cover-panel::before, .cover-panel::after { display: none; }
      .cover-content { padding: 0.5rem 0.75rem 0.35rem; max-width: 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
      /* Hide decorative elements on mobile */
      .cover-aurora, .cover-glow-edge, .cover-core-pulse, .cover-hex-overlay,
      .float-node, .cover-orb, .cover-panel > .float-node { display: none !important; }
      .cover-illustration { display: none; }
      .cover-title { font-size: 0.82rem; margin-bottom: 0; white-space: nowrap; }
      .cover-title .title-accent { display: inline; }
      .cover-subtitle { display: none; }
      .cover-stats { display: none; }
      .sys-status { margin-bottom: 0; font-size: 0.58rem; padding: 2px 8px; }
      .sys-status span { font-size: 0.58rem; }
      .sys-dot { width: 5px; height: 5px; }
      .sys-dot::after { display: none; }
      /* Form panel: full width, immediately below */
      .form-panel { flex: 1 1 auto; width: 100%; min-height: auto; padding: 0.85rem 0.85rem 1rem; box-shadow: none !important; }
      .form-inner { max-width: 100%; }
      .ef-field { margin-bottom: 0.55rem; }
      .ef-input { height: 42px; font-size: 0.85rem; border-radius: 10px; }
      .ef-label { font-size: 0.62rem; }
      .ef-icon { width: 40px; }
      [dir="rtl"] .ef-input { padding: 0 40px 0 10px; }
      [dir="ltr"] .ef-input { padding: 0 10px 0 40px; }
      .btn-enterprise { height: 42px; font-size: 0.88rem; border-radius: 10px; }
      .version-badge { bottom: 4px; font-size: 0.5rem; }
      [dir="rtl"] .version-badge { left: 4px; }
      [dir="ltr"] .version-badge { right: 4px; }
      .brand-header { margin-bottom: 0.6rem; gap: 8px; }
      .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
      .brand-mark svg { width: 18px; height: 18px; }
      .brand-text h6 { font-size: 0.82rem; }
      .brand-text small { font-size: 0.6rem; }
      .greeting { font-size: 0.95rem; margin-bottom: 0.1rem; }
      .greeting-sub { font-size: 0.72rem; margin-bottom: 0.75rem; }
      .auth-footer { margin-top: 0.5rem; gap: 4px; }
      .toggle-switch { gap: 6px; }
      .toggle-track { width: 34px; height: 20px; }
      .toggle-track::after { width: 14px; height: 14px; top: 3px; }
      [dir="rtl"] .toggle-track::after { left: 3px; }
      [dir="ltr"] .toggle-track::after { right: 3px; }
      .toggle-label { font-size: 0.72rem; }
      .forgot-link { font-size: 0.72rem; }
      .remember-row { margin-bottom: 0.65rem; }
      .err-card, .rate-card { padding: 8px 12px; border-radius: 10px; }
      .secure-badge { font-size: 0.6rem; padding: 3px 10px; }
      .legal-links { gap: 0.5rem; font-size: 0.6rem; }
      .copyright { font-size: 0.58rem; }
      .lang-switch { top: 8px; padding: 4px 8px; font-size: 0.7rem; }
      [dir="rtl"] .lang-switch { left: 8px; right: auto; }
      [dir="ltr"] .lang-switch { right: 8px; left: auto; }
      /* Saved accounts cards */
      .saved-card { padding: 8px 10px; border-radius: 10px; }
      .saved-card .card-avatar { width: 30px; height: 30px; font-size: 0.8rem; }
      .saved-card .card-username { font-size: 0.75rem; }
      .saved-card .card-role { font-size: 0.6rem; }
    }
    @media (max-width: 480px) {
      .cover-content { padding: 0.35rem 0.6rem 0.3rem; gap: 5px; }
      .cover-title { font-size: 0.72rem; }
      .sys-status { padding: 1px 6px; }
      .sys-status span { font-size: 0.55rem; }
      .form-panel { padding: 0.65rem 0.75rem 0.85rem; }
      .brand-header { margin-bottom: 0.5rem; }
      .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
      .brand-mark svg { width: 16px; height: 16px; }
      .brand-text h6 { font-size: 0.78rem; }
      .greeting { font-size: 0.85rem; }
      .greeting-sub { font-size: 0.68rem; margin-bottom: 0.65rem; }
      .ef-input { height: 40px; font-size: 0.82rem; border-radius: 9px; }
      .ef-icon { width: 36px; }
      [dir="rtl"] .ef-input { padding: 0 36px 0 8px; }
      [dir="ltr"] .ef-input { padding: 0 8px 0 36px; }
      .btn-enterprise { height: 40px; font-size: 0.85rem; border-radius: 9px; }
      .ef-field { margin-bottom: 0.5rem; }
      .remember-row { margin-bottom: 0.55rem; }
      .toggle-track { width: 30px; height: 18px; }
      .toggle-track::after { width: 12px; height: 12px; top: 3px; }
      .toggle-label { font-size: 0.65rem; }
      .forgot-link { font-size: 0.65rem; }
      .auth-footer { gap: 3px; }
      .secure-badge { font-size: 0.55rem; padding: 2px 8px; }
      .legal-links { gap: 0.4rem; font-size: 0.55rem; }
      .copyright { font-size: 0.52rem; }
    }

        /* ── Language Switcher ── */
    .lang-switch {
      position: absolute;
      top: 16px;
      z-index: 10;
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 14px;
      border-radius: 50px;
      border: 1px solid var(--bs-border-color, #e0e0e0);
      background: var(--bs-paper-bg, #fff);
      font-size: 0.72rem; font-weight: 600;
      color: var(--bs-body-color);
      cursor: pointer;
      text-decoration: none;
      transition: all var(--transition-smooth);
      opacity: 0.7;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    [dir="rtl"] .lang-switch { left: 16px; }
    [dir="ltr"] .lang-switch { right: 16px; }
    .lang-switch:hover { opacity: 1; border-color: var(--brand-accent); color: var(--brand-accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .lang-switch i { font-size: 0.95rem; }
    @media (max-width: 991.98px) {
      .lang-switch { top: 10px; padding: 5px 10px; font-size: 0.68rem; }
      [dir="rtl"] .lang-switch { left: 10px; }
      [dir="ltr"] .lang-switch { right: 10px; }
    }

    /* ── Account Picker ── */
    .acct-picker { display: none; }
    .acct-picker.active { display: block; }
    .login-content { display: block; }
    .login-content.hidden { display: none; }
    .acct-heading {
      font-size: 1.1rem; font-weight: 700; color: var(--bs-heading-color);
      margin-bottom: 0.3rem;
    }
    .acct-sub {
      font-size: 0.78rem; color: var(--bs-body-color); opacity: 0.6;
      margin-bottom: 1.5rem;
    }
    .acct-card {
      display: flex; align-items: center; gap: 0.8rem;
      padding: 0.85rem 1rem;
      border: 1px solid var(--bs-border-color, #e0e0e0);
      border-radius: 14px;
      margin-bottom: 0.6rem;
      cursor: pointer;
      transition: all var(--transition-smooth);
      background: var(--bs-input-bg, #fff);
      position: relative;
    }
    .acct-card:hover {
      border-color: var(--brand-accent);
      box-shadow: 0 4px 16px rgba(236,106,74,0.08);
      transform: translateY(-1px);
    }
    .acct-avatar {
      width: 42px; height: 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 0.95rem;
      flex-shrink: 0;
    }
    .acct-info { flex: 1; min-width: 0; }
    .acct-name {
      font-size: 0.85rem; font-weight: 600;
      color: var(--bs-heading-color);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .acct-username {
      font-size: 0.72rem; color: var(--bs-body-color); opacity: 0.55;
      margin-top: 0.1rem;
    }
    .acct-badge {
      display: inline-block;
      padding: 0.15rem 0.6rem;
      border-radius: 50px;
      font-size: 0.65rem; font-weight: 600;
      background: rgba(236,106,74,0.08);
      color: var(--brand-primary);
      letter-spacing: 0.02em;
      white-space: nowrap;
    }
    .acct-remove {
      position: absolute; top: 6px;
      width: 22px; height: 22px;
      border-radius: 50%;
      border: none; background: transparent;
      color: var(--bs-body-color); opacity: 0.3;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: 0.7rem;
      transition: all 0.2s;
      z-index: 2;
    }
    [dir="rtl"] .acct-remove { left: 6px; }
    [dir="ltr"] .acct-remove { right: 6px; }
    .acct-remove:hover { opacity: 1; color: #EA5455; background: rgba(234,84,85,0.1); }
    .acct-remove:focus-visible { outline: 2px solid #EA5455; outline-offset: 2px; }
    .acct-remove:active { background: rgba(234,84,85,0.2); transform: scale(0.9); }
    .acct-new-btn {
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
      width: 100%; padding: 0.7rem;
      margin-top: 0.8rem;
      border: 1px dashed var(--bs-border-color, #e0e0e0);
      border-radius: 12px;
      background: transparent;
      cursor: pointer;
      font-size: 0.8rem; font-weight: 600;
      color: var(--bs-body-color); opacity: 0.55;
      transition: all var(--transition-smooth);
    }
    .acct-new-btn:hover { opacity: 0.85; border-color: var(--brand-accent); color: var(--brand-accent); }

    .acct-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
    .acct-actions .acct-new-btn { margin-top: 0; width: auto; flex: 1; }
    .acct-clear-btn {
      display: flex; align-items: center; justify-content: center; gap: 0.4rem;
      padding: 0.7rem 0.8rem;
      border: 1px dashed rgba(234,84,85,0.35);
      border-radius: 12px;
      background: transparent;
      cursor: pointer;
      font-size: 0.75rem; font-weight: 600; white-space: nowrap;
      color: #EA5455; opacity: 0.6;
      transition: all var(--transition-smooth);
    }
    .acct-clear-btn:hover { opacity: 1; background: rgba(234,84,85,0.06); border-color: #EA5455; }
    .acct-clear-btn:active { transform: scale(0.95); }
    .acct-clear-btn:focus-visible { outline: 2px solid #EA5455; outline-offset: 2px; }

    .acct-wipe-section { margin-top: 1rem; text-align: center; border-top: 1px solid rgba(234,84,85,0.08); padding-top: 0.85rem; }
    .acct-wipe-btn {
      display: inline-flex; align-items: center; gap: 0.4rem;
      padding: 0.5rem 1rem;
      border: 1px solid rgba(234,84,85,0.15);
      border-radius: 8px;
      background: rgba(234,84,85,0.04);
      cursor: pointer;
      font-size: 0.72rem; font-weight: 500;
      color: #EA5455; opacity: 0.6;
      transition: all var(--transition-smooth);
    }
    .acct-wipe-btn:hover { opacity: 1; background: rgba(234,84,85,0.08); border-color: rgba(234,84,85,0.3); }
    .acct-wipe-btn:active { transform: scale(0.95); }
    .acct-wipe-btn:focus-visible { outline: 2px solid #EA5455; outline-offset: 2px; }
    .acct-wipe-note { display: block; margin-top: 0.4rem; font-size: 0.62rem; color: var(--bs-body-color); opacity: 0.3; }

/* ═══ a11y ═══ */
    :focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
    input[type="checkbox"]:focus-visible + .toggle-track { outline: 3px solid var(--brand-accent); outline-offset: 2px; }