/* ══════════════════════════════════════════
         NAVBAR OVERRIDE — Auth pages: always solid
         ══════════════════════════════════════════ */
#mainNavbar,
#mainNavbar.navbar-transparent,
#mainNavbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  box-shadow:
    0 1px 0 rgba(185, 145, 58, 0.15),
    0 4px 24px rgba(10, 22, 40, 0.07) !important;
}

#mainNavbar .nav-logo-img {
  filter: none !important;
}

#mainNavbar .nav-link-custom {
  color: var(--navy-800) !important;
  text-shadow: none !important;
}

#mainNavbar .btn-ghost-nav {
  border-color: var(--navy-800) !important;
}

#mainNavbar.navbar-transparent .btn-ghost-nav {
  border-color: var(--navy-800) !important;
  color: var(--navy-800) !important;
}

#mainNavbar .navbar-toggler-custom {
  background: transparent !important;
  border-color: #d0d8e8 !important;
}

#mainNavbar .navbar-toggler-custom span {
  background: var(--navy-800) !important;
}

/* ══════════════════════════════════════════
         PAGE BODY
         ══════════════════════════════════════════ */
body {
  background: #eef0f7;
}

.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 16px 48px;
}

/* ══════════════════════════════════════════
         SPLIT CARD
         ══════════════════════════════════════════ */
.auth-card {
  display: flex;
  width: 100%;
  max-width: 940px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(10, 22, 40, 0.2),
    0 2px 8px rgba(10, 22, 40, 0.08);
}

/* ── Left: Visual Panel ── */
.auth-visual {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 52px 44px 40px;
  background: linear-gradient(150deg, #081422 0%, #0f2040 45%, #1a3260 100%);
}

@media (min-width: 900px) {
  .auth-visual {
    display: flex;
  }
}



.auth-visual .bg-image-wrap {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}

/* Gold glow blobs */
.av-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.av-glow-1 {
  width: 340px;
  height: 340px;
  top: -60px;
  right: -80px;
  background: rgba(184, 145, 58, 0.22);
}

.av-glow-2 {
  width: 260px;
  height: 260px;
  bottom: -40px;
  left: -60px;
  background: rgba(184, 145, 58, 0.16);
}

/* Decorative rings */
.av-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184, 145, 58, 0.1);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.av-ring-1 {
  width: 500px;
  height: 500px;
}

.av-ring-2 {
  width: 350px;
  height: 350px;
}

.av-ring-3 {
  width: 200px;
  height: 200px;
  border-color: rgba(184, 145, 58, 0.06);
}

.av-top {
  position: relative;
  z-index: 2;
}

.av-logo {
  margin-bottom: 48px;
}

.av-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.av-heading {
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}

.av-heading em {
  font-style: normal;
  background: linear-gradient(90deg, #c9a44f 0%, #e8c97e 50%, #b8913a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.av-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.9;
  margin-bottom: 40px;
}

.av-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.av-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.av-feat-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(184, 145, 58, 0.14);
  border: 1px solid rgba(184, 145, 58, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a44f;
  font-size: 0.75rem;
}

.av-bottom {
  position: relative;
  z-index: 2;
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.av-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.av-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: #c9a44f;
  line-height: 1.1;
}

.av-stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Right: Form Panel ── */
.auth-form-panel {
  background: #fff;
  width: 100%;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .auth-form-panel {
    width: 420px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 40px 24px;
  }
}

.af-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.af-sub {
  font-size: 0.84rem;
  color: #8494b0;
  margin-bottom: 30px;
}

.af-sub a {
  color: var(--gold-600);
  font-weight: 700;
  text-decoration: none;
}

.af-sub a:hover {
  color: var(--gold-500);
}

/* Social */
.af-socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.af-soc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1.5px solid #e4e9f3;
  border-radius: 10px;
  background: #f8f9fd;
  font-family: "Cairo", sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.af-soc-btn:hover {
  border-color: #c9a44f;
  background: #fff;
  box-shadow: 0 2px 12px rgba(184, 145, 58, 0.12);
  color: var(--navy-900);
}

/* Divider */
.af-divider {
  text-align: center;
  font-size: 0.77rem;
  color: #b8c4d8;
  position: relative;
  margin-bottom: 20px;
}

.af-divider::before,
.af-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: #eaecf4;
}

.af-divider::before {
  right: 0;
}

.af-divider::after {
  left: 0;
}

/* Progress */
.af-progress {
  height: 2px;
  background: #eef0f8;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 22px;
}

.af-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b8913a, #d4a84b);
  width: 0%;
  transition: width 0.35s;
}

/* Fields */
.af-field {
  margin-bottom: 15px;
}

.af-label {
  display: block;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.af-input-wrap {
  position: relative;
}

.af-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #bdc8dc;
  font-size: 0.84rem;
  pointer-events: none;
  transition: color 0.2s;
}

.af-input-wrap:focus-within .af-icon {
  color: #c9a44f;
}

.af-input {
  width: 100%;
  padding: 12px 38px 12px 14px;
  border: 1.5px solid #e4e9f3;
  border-radius: 10px;
  background: #f8f9fd;
  font-family: "Cairo", sans-serif;
  font-size: 0.87rem;
  color: var(--navy-900);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.af-input.with-btn {
  padding-left: 40px;
}

.af-input::placeholder {
  color: #c4ccdc;
}

.af-input:focus {
  border-color: #c9a44f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 145, 58, 0.1);
}

.af-input.is-err {
  border-color: #fc5d5d;
  background: #fff5f5;
}

.af-eye-btn {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #bdc8dc;
  cursor: pointer;
  font-size: 0.84rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.af-eye-btn:hover {
  color: #c9a44f;
}

.af-err {
  font-size: 0.73rem;
  color: #e03d3d;
  margin-top: 4px;
  display: none;
}

.af-err.show {
  display: block;
}

/* Row: remember + forgot */
.af-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 8px;
}

.af-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #6478a0;
  cursor: pointer;
}

.af-check input {
  accent-color: #c9a44f;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.af-forgot {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-600);
  text-decoration: none;
  white-space: nowrap;
}

.af-forgot:hover {
  color: var(--gold-500);
}

/* Submit */
.af-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #b8913a 0%, #d9b45c 50%, #9a7528 100%);
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 22px rgba(154, 117, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
  transition:
    opacity 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.af-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(154, 117, 40, 0.52);
}

.af-submit:active {
  transform: none;
}

.af-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Switch */
.af-switch {
  text-align: center;
  font-size: 0.83rem;
  color: #8494b0;
}

.af-switch a {
  color: var(--gold-600);
  font-weight: 700;
  text-decoration: none;
}

.af-switch a:hover {
  color: var(--gold-500);
}

#mainNavbar.navbar-transparent .btn-ghost-nav {
  text-shadow: none !important;
}