@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
    :root {
      --navy: #0f172a;
      --blue: #2563eb;
      --blue-2: #38bdf8;
      --gold: #f5b82e;
      --muted: #64748b;
      --light: #f8fafc;
      --border: rgba(15, 23, 42, .10);
      --shadow: 0 24px 70px rgba(15, 23, 42, .14);
    }

    * { box-sizing: border-box; }

    body {
      font-family: "Inter", sans-serif;
      color: var(--navy);
      background: #fff;
      overflow-x: hidden;
    }

    a { text-decoration: none; }

    .navbar {
      padding: 18px 0;
      background: rgba(255,255,255,.88);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(15,23,42,.06);
      transition: .25s ease;
    }

    .navbar.scrolled {
      padding: 10px 0;
      box-shadow: 0 12px 35px rgba(15,23,42,.08);
    }

    .brand-logo {
      width: 76px;
      height: 76px;
      object-fit: contain;
      margin-right: 14px;
    }

    .brand-name {
      font-weight: 900;
      font-size: 1.55rem;
      letter-spacing: -.04em;
      color: var(--navy);
    }

    .navbar .nav-link {
      font-weight: 600;
      color: #475569;
      margin: 0 8px;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active { color: var(--blue); }

    .login-btn {
      background: var(--navy);
      color: #fff !important;
      border-radius: 999px;
      padding: 10px 20px !important;
      box-shadow: 0 12px 30px rgba(15,23,42,.18);
    }

    .login-page {
      min-height: 100vh;
      padding: 165px 0 80px;
      background:
        radial-gradient(circle at 12% 20%, rgba(56,189,248,.18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(245,184,46,.16), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
      position: relative;
      overflow: hidden;
    }

    .login-page::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
      background-size: 58px 58px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 78%);
      pointer-events: none;
    }

    .login-shell {
      position: relative;
      z-index: 2;
    }

    .login-visual {
      height: 100%;
      min-height: 610px;
      border-radius: 42px;
      padding: 44px;
      color: #fff;
      background:
        radial-gradient(circle at 20% 18%, rgba(56,189,248,.28), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(245,184,46,.20), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #0b1120 100%);
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
    }

    .login-visual::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
      background-size: 58px 58px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.88), transparent 85%);
    }

    .visual-inner {
      position: relative;
      z-index: 2;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      width: fit-content;
      padding: 9px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      color: #e0f2fe;
      font-weight: 800;
      font-size: .86rem;
      margin-bottom: 24px;
    }

    .login-visual h1 {
      font-size: clamp(2.6rem, 5vw, 4.5rem);
      line-height: .98;
      font-weight: 900;
      letter-spacing: -.075em;
      max-width: 560px;
      margin-bottom: 22px;
    }

    .login-visual h1 span {
      background: linear-gradient(90deg, #fff, #93c5fd, #facc15);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .login-visual p {
      color: #cbd5e1;
      font-size: 1.06rem;
      line-height: 1.8;
      max-width: 560px;
    }

    .feature-mini {
      display: flex;
      gap: 14px;
      align-items: center;
      padding: 16px;
      border-radius: 22px;
      background: rgba(255,255,255,.11);
      border: 1px solid rgba(255,255,255,.15);
      backdrop-filter: blur(12px);
      margin-top: 14px;
    }

    .visual-icon {
      width: 52px;
      height: 52px;
      flex: 0 0 52px;
      display: grid;
      place-items: center;
      border-radius: 17px;
      color: #fff;
      background: rgba(37,99,235,.75);
      font-size: 1.35rem;
    }

    .login-card {
      border: 1px solid var(--border);
      border-radius: 34px;
      padding: 42px;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(18px);
      box-shadow: var(--shadow);
    }

    .login-card h2 {
      font-size: 2.15rem;
      font-weight: 900;
      letter-spacing: -.05em;
      margin-bottom: 10px;
    }

    .login-card .subtitle {
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 30px;
    }

    .form-label {
      font-weight: 800;
      color: var(--navy);
      margin-bottom: 9px;
    }

    .form-control {
      border-radius: 16px;
      border: 1px solid rgba(15,23,42,.14);
      padding: 14px 15px;
      font-weight: 500;
      color: var(--navy);
    }

    .form-control:focus {
      border-color: rgba(37,99,235,.5);
      box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
    }

    .password-wrap { position: relative; }

    .toggle-password {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      border: 0;
      background: transparent;
      color: var(--muted);
      font-size: 1.1rem;
      padding: 4px;
    }

    .password-wrap .form-control { padding-right: 48px; }

    .form-check-input:checked {
      background-color: var(--blue);
      border-color: var(--blue);
    }

    .btn-main {
      border: 0;
      color: #fff;
      font-weight: 800;
      border-radius: 18px;
      padding: 15px 24px;
      background: linear-gradient(135deg, var(--blue), #0ea5e9);
      box-shadow: 0 22px 40px rgba(37,99,235,.35);
      transition: .25s ease;
    }

    .btn-main:hover {
      transform: translateY(-3px);
      color: #fff;
      box-shadow: 0 28px 55px rgba(37,99,235,.42);
    }

    .support-box {
      border-radius: 24px;
      padding: 20px;
      background: #f8fafc;
      border: 1px solid rgba(15,23,42,.08);
      margin-top: 24px;
    }

    .support-box a { font-weight: 800; }

    footer {
      padding: 34px 0;
      background: #0b1120;
      color: #cbd5e1;
    }

    footer h5,
    footer h6 {
    color: #fff;
    font-weight: 900;
    }

    footer a {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
    }

    footer a:hover {
    color: #fff;
    }

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: .7s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 991px) {
      .login-page { padding-top: 145px; }
      .login-visual { min-height: auto; }
    }

    @media (max-width: 575px) {
      .brand-logo { width: 58px; height: 58px; }
      .brand-name { font-size: 1.25rem; }
      .login-card { padding: 28px; border-radius: 28px; }
      .login-visual { padding: 30px; border-radius: 30px; }
    }

    body {
    font-family: 'Inter', sans-serif;
    }

    html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
    }

    /* Arabic typography tuning */
    html[dir="rtl"] h1,
    html[dir="rtl"] h2,
    html[dir="rtl"] h3,
    html[dir="rtl"] h4,
    html[dir="rtl"] h5,
    html[dir="rtl"] h6 {
    font-weight: 700;
    line-height: 1.4;
    }

    html[dir="rtl"] p,
    html[dir="rtl"] span,
    html[dir="rtl"] a,
    html[dir="rtl"] li {
    font-weight: 400;
    line-height: 1.9;
    }

    .brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    }

    html[dir="rtl"] .brand-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    text-shadow: 0 0 0.01px currentColor;
    }

    html[dir="rtl"] .brand-logo {
    margin-right: 0;
    margin-left: 18px;
    }

    html[dir="rtl"] .brand-name,
    html[dir="rtl"] .brand-name-footer {
    font-family: "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    }

.lang-toggle {
  font-weight: 600;
  color: #475569;
  margin: 0 8px;
  text-decoration: none;
}

.lang-toggle:hover {
  color: var(--blue);
}

html[dir="rtl"] .login-page input,
html[dir="rtl"] .login-page .form-control {
  direction: ltr;
  text-align: right;
}

html[dir="rtl"] .login-page input::placeholder {
  text-align: right;
}