/* Professional login redesign — shared by business login and admin login.
   Loaded after the page styles so it overrides them. Markup hooks (ids/classes used by JS) are unchanged. */

:root {
  --ap-navy-900: #0b1530;
  --ap-navy-800: #12214a;
  --ap-navy-700: #1b3166;
  --ap-orange: #f39720;
  --ap-orange-600: #e0830a;
  --ap-ink: #0f172a;
  --ap-muted: #64748b;
  --ap-line: #e2e8f0;
  --ap-surface: #ffffff;
  --ap-bg: #f4f6fb;
}

body { background: var(--ap-bg) !important; }

/* Quiet the old animated background */
.animated-background { display: none !important; }

/* ---------- Centered layout ---------- */
.login-container.auth-split {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 40px 20px 64px;
  min-height: calc(100vh - 100px);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* ---------- Form card (right side) ---------- */
.auth-split .login-card {
  align-self: center;
  justify-self: center;
  max-width: 460px;
  width: 100%;
  padding: 48px 44px;
  background: var(--ap-surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  box-shadow: 0 30px 70px -30px rgba(11, 21, 48, 0.28), 0 2px 6px rgba(15, 23, 42, 0.04);
}
.auth-split .login-header { margin-bottom: 26px; }
.auth-split .login-logo img { height: 56px; width: auto; }
.auth-split .login-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ap-ink);
}
.auth-split .login-subtitle { font-size: 14.5px; color: var(--ap-muted); }

/* Admin badge replaces the gear glyph */
.login-logo--badge {
  width: 64px; height: 64px;
  display: inline-grid !important; place-items: center;
  margin-bottom: 18px;
  font-size: 30px; color: #fff;
  background: linear-gradient(135deg, var(--ap-orange), #ffb347);
  border-radius: 18px;
  box-shadow: 0 14px 30px -10px rgba(243, 151, 32, 0.6);
}

.auth-split .form-group { margin-bottom: 18px; }
.auth-split .form-label { font-size: 13.5px; font-weight: 600; color: var(--ap-ink); margin-bottom: 8px; }
.auth-split .form-control {
  height: 50px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ap-ink);
  background: #f8fafc;
  border: 1.5px solid var(--ap-line);
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-split .form-control::placeholder { color: #94a3b8; }
.auth-split .form-control:hover { border-color: #cbd5e1; }
.auth-split .form-control:focus {
  background: #fff;
  border-color: var(--ap-orange);
  box-shadow: 0 0 0 4px rgba(243, 151, 32, 0.16);
}
.auth-split .password-toggle { color: #94a3b8; font-size: 18px; padding: 6px; border-radius: 8px; }
.auth-split .password-toggle:hover { color: var(--ap-ink); background: #eef2f7; }

.auth-split .form-options { margin: 4px 0 22px; }
.auth-split .form-check-label { font-size: 13.5px; color: var(--ap-muted); }
.auth-split .form-check-input { width: 17px; height: 17px; border-radius: 5px; }
.auth-split .forgot-password { font-size: 13.5px; font-weight: 600; color: var(--ap-orange-600); }
.auth-split .forgot-password:hover { color: var(--ap-orange); text-decoration: none; }

.auth-split .btn-login {
  height: 52px;
  font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(135deg, #f7a233 0%, var(--ap-orange) 50%, var(--ap-orange-600) 100%);
  border-radius: 12px;
  box-shadow: 0 14px 28px -12px rgba(243, 151, 32, 0.75);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.auth-split .btn-login:hover {
  background: linear-gradient(135deg, #f7a233 0%, var(--ap-orange) 50%, var(--ap-orange-600) 100%);
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -12px rgba(243, 151, 32, 0.85);
}
.auth-split .btn-login:active { transform: translateY(0); }
.auth-split .btn-login:focus-visible { outline: 3px solid rgba(243, 151, 32, 0.4); outline-offset: 2px; }
.auth-split .btn-login:disabled { opacity: .75; cursor: progress; }

.auth-split .signup-link { margin-top: 22px; font-size: 14px; color: var(--ap-muted); }
.auth-split .signup-link a { font-weight: 700; color: var(--ap-orange-600); }
.auth-split .signup-link a:hover { text-decoration: none; color: var(--ap-orange); }

.auth-split .alert { border-radius: 12px; font-size: 13.5px; padding: 12px 14px; }

.auth-secure-note {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--ap-line);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--ap-muted);
}
.auth-secure-note i { color: #10b981; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .login-container.auth-split { padding: 20px 12px 40px; }
  .auth-split .login-card { padding: 34px 22px; border-radius: 20px; }
}

[dir="rtl"] .auth-split .login-title { letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .auth-split .btn-login, .auth-split .form-control { transition: none; }
}

/* ---------- Minimal top bar (admin login) ---------- */
.auth-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ap-line);
}
.auth-topbar__inner {
  max-width: 1180px; margin: 0 auto;
  height: 68px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.auth-topbar__logo { display: inline-flex; align-items: center; }
.auth-topbar__logo img { height: 44px; width: auto; display: block; }
.auth-topbar__actions { display: flex; align-items: center; gap: 10px; }
.auth-topbar__lang {
  height: 40px; padding: 0 34px 0 14px;
  font: 600 13.5px/1 inherit; color: var(--ap-ink);
  background: #fff; border: 1.5px solid var(--ap-line); border-radius: 10px;
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-topbar__lang:hover { border-color: #cbd5e1; }
.auth-topbar__lang:focus-visible { outline: none; border-color: var(--ap-orange); box-shadow: 0 0 0 4px rgba(243, 151, 32, .16); }
.auth-topbar__link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none;
  background: var(--ap-navy-800); border-radius: 10px;
  transition: background .15s ease, transform .15s ease;
}
.auth-topbar__link:hover { background: var(--ap-navy-700); transform: translateY(-1px); color: #fff; }
@media (max-width: 480px) {
  .auth-topbar__link span, .auth-topbar__link { padding: 0 12px; }
}
