/* ============================================================
   WebDealz - Auth pages (login / register) redesign
   (assets/css/wd-auth.css)

   Loaded after style.css, so these rules layer over the old
   `.wd-auth*` / `.auth-*` styles without touching other pages.
   Scope: everything is namespaced under .wd-authpage.
   Palette: navy #0B1F42, blue #0866F5, yellow #FFB800, orange #FF6B00
   ============================================================ */

/* ---------------- Page shell ---------------- */
.wd-authpage {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 116px);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}
.wd-authpage-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .55;
  background: radial-gradient(circle, rgba(8, 102, 245, .35), transparent 70%);
}

.wd-authpage-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) var(--wd-gutter, 1.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

/* ---------------- Marketing panel ---------------- */
.wd-authp {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(1.8rem, 3vw, 3rem);
  color: #fff;
  display: flex;
  background:
    radial-gradient(120% 120% at 15% 5%, #1b5ad0 0%, #0B1F42 55%, #071731 100%);
  box-shadow: 0 30px 60px -30px rgba(7, 23, 49, .8);
}
.wd-authp::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 55% at 100% 100%, rgba(255, 107, 0, .18), transparent 70%),
    radial-gradient(45% 45% at 0% 112%, rgba(8, 102, 245, .38), transparent 72%);
}
.wd-authp-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wd-authp-logo {
  align-self: flex-start;
  display: inline-flex;
  background: #fff;
  border-radius: 12px;
  padding: .45rem .8rem;
  box-shadow: 0 12px 26px rgba(2, 10, 24, .35);
}
.wd-authp-logo img { height: 30px; width: auto; display: block; }

.wd-authp-title {
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 2rem 0 .8rem;
  max-width: 460px;
}
.wd-authp-sub {
  color: #c7d4ea;
  font-size: .98rem;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 1.6rem;
}

.wd-authp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
  max-width: 470px;
}
.wd-authp-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  color: #d7e2f4;
  font-size: .95rem;
  line-height: 1.5;
}
.wd-authp-list li .ic {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: .08rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 220, 132, .16);
  color: #4ade80;
  font-size: .72rem;
}
.wd-authp-list strong { color: #fff; font-weight: 700; }

.wd-authp-visual {
  position: relative;
  margin: 1.8rem 0 1.4rem;
}
.wd-authp-visual img {
  width: 100%;
  max-width: 430px;
  display: block;
  border-radius: 18px;
  box-shadow: 0 30px 50px -20px rgba(2, 10, 24, .7);
}
.wd-authp-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  color: var(--wd-navy);
  font-size: .72rem;
  font-weight: 700;
  padding: .45rem .8rem;
  border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(2, 10, 24, .6);
  white-space: nowrap;
}
.wd-authp-chip i { color: var(--wd-primary); font-size: .8rem; }
.wd-authp-chip.chip-a { top: -14px; right: 6%; }
.wd-authp-chip.chip-b { bottom: 12px; left: -10px; }
.wd-authp-chip.chip-b i { color: #12a150; }

.wd-authp-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.wd-authp-stack { display: flex; flex: 0 0 auto; }
.wd-authp-stack img,
.wd-authp-stack .more {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .92);
  margin-left: -10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  background: #fff;
}
.wd-authp-stack img:first-child { margin-left: 0; }
.wd-authp-stack .more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wd-primary);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
}
.wd-authp-foot p {
  margin: 0;
  color: #c9d6ec;
  font-size: .82rem;
  line-height: 1.45;
}
.wd-authp-foot strong { color: #fff; }

/* ---------------- Form panel ---------------- */
.wd-authm {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-authm-box { width: 100%; max-width: 460px; }

.wd-authm-brand { display: none; }
.wd-authm-brand img { height: 34px; width: auto; }

.wd-authm-toggle {
  display: inline-flex;
  padding: .28rem;
  gap: .15rem;
  background: var(--wd-bg-soft);
  border: 1px solid var(--wd-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.wd-authm-tab {
  padding: .5rem 1.2rem;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--wd-muted);
  text-decoration: none;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.wd-authm-tab.is-on {
  background: #fff;
  color: var(--wd-primary);
  box-shadow: var(--wd-shadow-xs);
}
.wd-authm-tab:not(.is-on):hover { color: var(--wd-navy); }

.wd-authm-title {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--wd-navy);
  margin: 0 0 .35rem;
}
.wd-authm-sub {
  color: var(--wd-muted);
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: 1.6rem;
}

/* Labels + inputs */
.wd-authpage .auth-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--wd-heading);
  margin: 0 0 .4rem .1rem;
}
.wd-authpage .auth-field .form-control {
  border: 1px solid var(--wd-border-strong);
  border-radius: 12px;
  padding: .78rem .9rem .78rem 2.7rem;
  font-size: .92rem;
  color: var(--wd-heading);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.wd-authpage .auth-field .form-control:focus {
  border-color: var(--wd-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 102, 245, .12);
}
.wd-authpage .auth-field > i { left: 1rem; color: var(--wd-muted); }
.wd-authpage .auth-field:focus-within > i { color: var(--wd-primary); }
.wd-authpage .auth-eye { right: .5rem; border-radius: 8px; }
.wd-authpage .auth-eye:hover { color: var(--wd-primary); background: var(--wd-bg-soft); }

/* Social + divider */
.wd-authpage .auth-social .btn {
  border: 1px solid var(--wd-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--wd-navy);
  font-weight: 700;
  font-size: .88rem;
  padding: .72rem .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.wd-authpage .auth-social .btn:hover {
  border-color: var(--wd-primary);
  color: var(--wd-primary);
  background: var(--wd-primary-soft);
  box-shadow: 0 8px 18px -12px rgba(8, 102, 245, .6);
}
.wd-authpage .auth-divider {
  color: var(--wd-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 1.15rem 0;
}
.wd-authpage .auth-divider::before,
.wd-authpage .auth-divider::after { background: var(--wd-border); }

/* Primary action */
.wd-authpage .btn-danger {
  border: 0;
  border-radius: 12px;
  padding: .85rem 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.wd-authpage .btn-danger i { transition: transform .15s ease; }
.wd-authpage .btn-danger:hover i { transform: translateX(3px); }

/* Misc */
.wd-authpage .auth-alert { border-radius: 12px; font-size: .88rem; }
.wd-authpage .form-check-label { font-size: .86rem; color: var(--wd-text); }
.wd-authpage .form-check-input:checked { background-color: var(--wd-primary); border-color: var(--wd-primary); }
.wd-authpage a:not(.wd-authm-tab) { color: var(--wd-primary); font-weight: 600; text-decoration: none; }
.wd-authpage a:not(.wd-authm-tab):hover { text-decoration: underline; }
.wd-authpage .auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.2rem;
  margin-top: 1.1rem;
  color: var(--wd-muted);
  font-size: .75rem;
  font-weight: 600;
}
.wd-authpage .auth-trust i { color: var(--wd-primary); margin-right: .22rem; }
.wd-authpage > .wd-authpage-grid + * { position: relative; z-index: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  .wd-authpage-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .wd-authp { display: none; }
  .wd-authm { padding: .5rem 0 2.5rem; }
  .wd-authm-brand { display: inline-flex; margin-bottom: 1.4rem; }
}
@media (max-width: 575.98px) {
  .wd-authpage-grid { padding-left: 1rem; padding-right: 1rem; }
  .wd-authm-toggle { width: 100%; }
  .wd-authm-tab { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wd-authpage *, .wd-authpage *::before, .wd-authpage *::after {
    transition: none !important;
    animation: none !important;
  }
}
