/* ============================================================
   CITYSOFT TECHNOLOGIES — auth.css
   Depends on style.css being loaded first
   ============================================================ */

/* ── NAVBAR SIGN IN BUTTON ────────────────────────────────── */
.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn-signin:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-dim);
}

.btn-signin svg {
  transition: transform 0.22s var(--ease-out);
}

.btn-signin:hover svg {
  transform: translateX(2px);
}

.active-page-btn {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-dim);
}

/* Mobile nav sign in link */
.nav-mobile-signin {
  display: none;
}

@media (max-width: 899px) {
  .nav-mobile-signin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--brand);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
  }
}

/* ── AUTH PAGE LAYOUT ─────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
}

/* Background grid */
.auth-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Orbs */
.auth-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.auth-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.auth-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

/* ── AUTH CARD ────────────────────────────────────────────── */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 40px 36px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ── BRAND ────────────────────────────────────────────────── */
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-brand a {
  display: inline-flex;
  transition: transform 0.2s;
}

.auth-brand a:hover {
  transform: scale(1.06);
}

/* ── FORM WRAP — handles slide/fade transition ────────────── */
.auth-form-wrap {
  animation: authFadeIn 0.4s var(--ease-out) both;
}

.auth-form-wrap--hidden {
  display: none;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.auth-form-wrap.switching-out {
  animation: authFadeOut 0.22s var(--ease-out) both;
}

.auth-form-wrap.switching-in {
  animation: authFadeIn 0.35s var(--ease-out) 0.18s both;
}

/* ── AUTH HEADER ──────────────────────────────────────────── */
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.875rem;
  color: var(--text-3);
}

/* GitHub icon — invert on dark theme so it shows white */
[data-theme="dark"] .social-icon-btn:nth-child(2) svg {
  filter: invert(1);
}

/* ── SOCIAL BUTTONS ───────────────────────────────────────── */
.social-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
}

.social-btn:hover {
  border-color: var(--brand);
  background: var(--brand-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── SOCIAL CLUSTER ───────────────────────────────────────── */
.social-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.social-cluster-hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
}

/* The group that holds all icons */
.social-icons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 52px;
  width: 52px; /* collapsed width — just shows stacked */
  transition: width 0.45s var(--ease-out);
}

/* On hover — expand to show all four */
.social-icons-group:hover {
  width: x; /* 3 icons × 52px + gaps */
}

/* Each icon button */
.social-icon-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 40%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.35s var(--ease-out),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
  /* All start stacked in center */
  transform: translateX(0);
  opacity: 0.6;
  box-shadow: var(--shadow-sm);
}

.social-icon-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

/* Stacked look before hover — slightly offset so you see depth */
.social-icon-btn:nth-child(1) { z-index: 4; transform: translateX(0px);  opacity: 0.7;  }
.social-icon-btn:nth-child(2) { z-index: 3; transform: translateX(5px);  opacity: 0.55; }
.social-icon-btn:nth-child(3) { z-index: 2; transform: translateX(10px); opacity: 0.4;  }
.social-icon-btn:nth-child(4) { z-index: 1; transform: translateX(15px); opacity: 0.25; }

/* Spread out on group hover */
.social-icons-group:hover { width: 240px; }

.social-icons-group:hover .social-icon-btn:nth-child(1) { transform: translateX(-96px); opacity: 1; }
.social-icons-group:hover .social-icon-btn:nth-child(2) { transform: translateX(-32px); opacity: 1; }
.social-icons-group:hover .social-icon-btn:nth-child(3) { transform: translateX(32px);  opacity: 1; }
.social-icons-group:hover .social-icon-btn:nth-child(4) { transform: translateX(96px);  opacity: 1; }


/* Individual icon hover */
.social-icon-btn:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim), var(--shadow-md);
  transform: translateX(-96px) scale(1.12) !important;
}

.social-icons-group:hover .social-icon-btn:nth-child(2):hover { transform: translateX(-32px) scale(1.12) !important; }
.social-icons-group:hover .social-icon-btn:nth-child(3):hover { transform: translateX(32px)  scale(1.12) !important; }
.social-icons-group:hover .social-icon-btn:nth-child(4):hover { transform: translateX(96px)  scale(1.12) !important; }

/* ── DIVIDER ──────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.alert-success {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.11);
  border-color: rgba(34, 197, 94, 0.25);
}

.alert-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.25);
}

.alert-warning {
  color: #b45309;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.25);
}

.alert-info {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.25);
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

/* ── FORM FIELDS ──────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}

.forgot-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.2s;
}

.auth-card.phone-dropdown-open {
  overflow: visible;
}

.phone-field {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.phone-country-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  min-width: 94px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.phone-country-btn:hover {
  border-color: var(--brand);
}

.phone-country-btn:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.phone-country-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.phone-country-dial {
  white-space: nowrap;
}

.phone-country-chevron {
  margin-left: auto;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out), color 0.22s;
}

.phone-country-btn.open .phone-country-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.phone-number-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.phone-number-input::placeholder { color: var(--text-3); }

.phone-number-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.phone-number-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.phone-number-input.success {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.phone-country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  max-width: min(320px, 88vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

.phone-country-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.phone-country-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.phone-country-search-wrap svg {
  position: absolute;
  left: 10px;
  color: var(--text-3);
  pointer-events: none;
}

.phone-country-search {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.phone-country-search:focus { border-color: var(--brand); }
.phone-country-search::placeholder { color: var(--text-3); }

.phone-country-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-country-list::-webkit-scrollbar { width: 6px; }
.phone-country-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.phone-country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.phone-country-option:hover,
.phone-country-option[data-active="true"] {
  background: var(--brand-dim);
  color: var(--brand);
}

.phone-country-option.is-selected {
  color: var(--brand);
  font-weight: 600;
}

.phone-country-option-flag { font-size: 1rem; flex-shrink: 0; }

.phone-country-option-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-country-option-dial {
  color: var(--text-3);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.phone-country-option:hover .phone-country-option-dial,
.phone-country-option[data-active="true"] .phone-country-option-dial {
  color: var(--brand);
}

.phone-country-empty {
  padding: 16px 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
}

@media (max-width: 480px) {
  .phone-field { flex-wrap: wrap; }
  .phone-country-btn { min-width: 84px; }
  .phone-number-input { flex-basis: 100%; }
  .phone-country-dropdown {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-country-dropdown,
  .phone-country-chevron {
    transition: none !important;
  }
}

.forgot-link:hover {
  opacity: 0.75;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  pointer-events: none;
  flex-shrink: 0;
}

.field-wrap input {
  width: 100%;
  padding: 11px 44px 11px 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.field-wrap input::placeholder {
  color: var(--text-3);
}

.field-wrap input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.field-wrap input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-wrap input.success {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Eye toggle */
.eye-btn {
  position: absolute;
  right: 12px;
  color: var(--text-3);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.eye-btn:hover {
  color: var(--brand);
}

/* Field error */
.field-error {
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 16px;
  display: block;
  transition: opacity 0.2s;
}

/* ── PASSWORD STRENGTH ────────────────────────────────────── */
.strength-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.strength-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.4s var(--ease-out), background 0.4s;
  background: #ef4444;
}

.strength-fill.weak   { width: 25%; background: #ef4444; }
.strength-fill.fair   { width: 50%; background: #f97316; }
.strength-fill.good   { width: 75%; background: #eab308; }
.strength-fill.strong { width: 100%; background: #22c55e; }

.strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  min-width: 52px;
  transition: color 0.3s;
}

/* ── CAPTCHA ───────────────────────────────────────────────── */
.captcha-group {
  margin-top: 10px;
}

.captcha-box {
  display: grid;
  gap: 12px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.captcha-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255,255,255,0.02);
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.captcha-refresh:hover {
  color: var(--brand);
  border-color: rgba(255, 124, 31, 0.4);
  background: rgba(255, 124, 31, 0.06);
}

.captcha-question-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.captcha-lock {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 124, 31, 0.08);
  border: 1px solid rgba(255, 124, 31, 0.18);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.captcha-question {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.captcha-label {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
}

.captcha-question strong {
  display: block;
  font-size: 1.22rem;
  letter-spacing: 0.22em;
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 0;
  word-break: break-all;
  text-shadow: 0 0 12px rgba(255, 124, 31, 0.1);
}

.captcha-input-wrap {
  margin-top: 2px;
}

.captcha-input-wrap input {
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.2);
}

.captcha-input-wrap input:focus {
  background: rgba(15, 23, 42, 0.9);
}

/* ── CHECKBOX ─────────────────────────────────────────────── */
.field-check {
  margin-top: -4px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

.check-label input[type="checkbox"] {
  display: none;
}

.check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.check-label input:checked + .check-box {
  background: var(--brand);
  border-color: var(--brand);
}

.check-label input:checked + .check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.inline-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
}

/* ── SUBMIT BUTTON ────────────────────────────────────────── */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  margin-top: 4px;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.auth-submit:hover {
  background: #e85e00;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--brand-glow);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ── SWITCH LINK ──────────────────────────────────────────── */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-3);
}

.auth-switch-btn {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}

.auth-switch-btn:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 520px) {
  .auth-card {
    padding: 32px 24px 28px;
    border-radius: var(--radius-lg);
  }

  .social-btns {
    grid-template-columns: 1fr;
  }

  .social-btn {
    justify-content: flex-start;
    padding: 11px 16px;
  }

  .auth-header h1 {
    font-size: 1.45rem;
  }
}

/* ── WHATSAPP FLOATING BUTTON ─────────────────────────────── */
.wa-btn-wrap {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;

  /* Entrance animation */
  animation: waEntrance 0.6s var(--ease-out) 1.5s both;
}

@keyframes waEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tooltip */
.wa-tooltip {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}

/* Show tooltip on wrap hover */
.wa-btn-wrap:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* The button itself */
.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  position: relative;
  text-decoration: none;

  /* Idle pulse */
  animation: waPulse 2.8s ease-in-out infinite;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
  animation-play-state: paused;
}

/* Pulse ring */
.wa-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: waRing 2.8s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

@keyframes waRing {
  0%        { transform: scale(0.9);  opacity: 0; }
  50%       { transform: scale(1.25); opacity: 1; }
  100%      { transform: scale(1.5);  opacity: 0; }
}

/* Light theme — slightly deeper shadow */
[data-theme="light"] .wa-btn {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

/* Mobile */
@media (max-width: 639px) {
  .wa-btn-wrap {
    bottom: 24px;
    right: 20px;
  }

  .wa-btn {
    width: 50px;
    height: 50px;
  }

  /* Tooltip shows on tap via JS class instead of hover */
  .wa-tooltip {
    opacity: 0 !important;
    pointer-events: none;
  }

  .wa-btn-wrap.tooltip-visible .wa-tooltip {
    opacity: 1 !important;
    transform: translateX(0);
  }
}
