/* ═══════════════════════════════════════════
   HIGHPEX — Auth Pages (Login / Register)
   Liquid Glass Theme
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:           #07070f;
  --surface:      rgba(255,255,255,0.04);
  --surface-h:    rgba(255,255,255,0.07);
  --card-bg:      rgba(255,255,255,0.04);
  --border:       rgba(255,255,255,0.10);
  --border-h:     rgba(255,255,255,0.20);
  --border-focus: rgba(79,142,255,0.55);
  --text:         #eaeaf4;
  --text-muted:   #6a6a82;
  --text-dim:     #b2b2cc;
  --accent:       #4f8eff;
  --accent2:      #a259ff;
  --accent-glow:  rgba(79,142,255,0.22);
  --input-bg:     rgba(255,255,255,0.05);
  --radius:       14px;
  --ease:         0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   NAVBAR — Liquid Glass
   ═══════════════════════════════════════════ */

.nav-outer {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), 1100px);
  z-index: 999;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  position: relative;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(255,255,255,0.05);
  overflow: visible;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.2) 75%, transparent 95%);
  pointer-events: none;
}

.navbar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 30%, transparent 60%);
  pointer-events: none;
}

.nav-brand {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 50px;
  width: 200px;
  display: block;
  object-fit: contain;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1;
}

.nav-link-plain {
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-link-plain:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, rgba(99,102,241,0.75), rgba(168,85,247,0.75));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(99,102,241,0.2), inset 0 1px 0 rgba(255,255,255,0.18);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(99,102,241,0.85), rgba(168,85,247,0.85));
}

/* ── User Dropdown ── */
.nav-user-wrap{position:relative}
.nav-user-btn{display:inline-flex;align-items:center;padding:8px 20px;font-size:.85rem;font-weight:600;font-family:'Inter',sans-serif;color:rgba(255,255,255,.85);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:10px;cursor:pointer;transition:all .2s ease;text-decoration:none;gap:6px;user-select:none}
.nav-user-btn:hover{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22)}
.nav-user-btn .fa-chevron-down{font-size:.6rem;transition:transform .2s;margin-left:2px}
.nav-user-wrap.open .nav-user-btn .fa-chevron-down{transform:rotate(180deg)}
.nav-dropdown{position:absolute;top:calc(100% + 10px);right:0;min-width:200px;background:rgba(16,16,30,.88);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border:1px solid rgba(255,255,255,.1);border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.05) inset;padding:6px;opacity:0;visibility:hidden;transform:translateY(-8px) scale(.97);transition:all .25s cubic-bezier(.4,0,.2,1);z-index:9999}
.nav-dropdown::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);border-radius:14px 14px 0 0;pointer-events:none}
.nav-user-wrap.open .nav-dropdown{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.nav-dropdown a{display:flex;align-items:center;gap:10px;padding:10px 14px;font-size:.84rem;font-weight:500;font-family:'Inter',sans-serif;color:rgba(255,255,255,.7);text-decoration:none;border-radius:10px;transition:all .15s}
.nav-dropdown a:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-dropdown a i{width:16px;text-align:center;font-size:.82rem}
.nav-dropdown .dd-divider{height:1px;background:rgba(255,255,255,.06);margin:4px 10px}
.nav-dropdown a.logout-link{color:#f87171}
.nav-dropdown a.logout-link:hover{background:rgba(239,68,68,.1);color:#f87171}

/* ═══════════════════════════════════════════
   AUTH LAYOUT
   ═══════════════════════════════════════════ */

.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── LIQUID GLASS AUTH CARD ── */
.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(255,255,255,0.03);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25) 50%, transparent);
  pointer-events: none;
}

.auth-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}

/* ── Liquid Glass Inline Alert ── */
.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(239,68,68,0.08);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(239,68,68,0.2);
  box-shadow: 0 8px 24px rgba(239,68,68,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  font-size: 0.84rem;
  font-family: 'Inter', sans-serif;
  color: #fca5a5;
  position: relative;
  z-index: 2;
}
.form-alert i {
  font-size: 1rem;
  color: #f87171;
  flex-shrink: 0;
}

/* Form groups */
.form-group {
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

/* ── LIQUID GLASS INPUT ── */
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}

.form-input:focus {
  border-color: rgba(79,142,255,0.5);
  background: rgba(79,142,255,0.04);
  box-shadow: 0 0 0 3px rgba(79,142,255,0.1);
}

/* Remember me */
.form-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

.form-check label {
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

/* ── LIQUID GLASS SUBMIT BUTTON ── */
.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.9);
  background: rgba(99,102,241,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.1);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2) 50%, transparent);
  pointer-events: none;
}

.btn-submit:hover {
  background: rgba(99,102,241,0.5);
  border-color: rgba(255,255,255,0.18);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Divider */
.form-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 20px 0;
  position: relative;
  z-index: 2;
}

/* ── LIQUID GLASS SOCIAL LOGIN ── */
.social-auth {
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  margin-bottom: 10px;
  border-radius: 11px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(155%);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

/* Top edge highlight — same trick as .auth-card / .btn-submit */
.btn-social::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28) 50%, transparent);
  pointer-events: none;
}

/* Sheen across the upper half */
.btn-social::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent);
  pointer-events: none;
}

.btn-social svg {
  flex: 0 0 18px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.btn-social.google {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 8px 26px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.12);
}
.btn-social.google:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}

.btn-social.discord {
  color: rgba(255,255,255,0.95);
  background: rgba(88,101,242,0.3);
  border: 1px solid rgba(139,148,255,0.3);
  box-shadow: 0 8px 26px rgba(88,101,242,0.22), inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.12);
}
.btn-social.discord:hover {
  background: rgba(88,101,242,0.46);
  border-color: rgba(139,148,255,0.44);
  transform: translateY(-1px);
}

.btn-social:active { transform: scale(0.985); }

/* "or" rule between social buttons and the email form */
.social-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.social-or::before,
.social-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Helper links */
.form-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.form-link-row {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.form-link-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.form-link-row a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   FOOTER — Liquid Glass
   ═══════════════════════════════════════════ */

.site-footer {
  position: relative;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 48px 24px 28px;
  margin-top: 20px;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.18) 30%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.18) 70%, transparent 95%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-col .footer-brand {
  display: block;
  margin-bottom: 10px;
}

.footer-brand-col .footer-brand img {
  height: 50px;
  width: 200px;
  display: block;
  object-fit: contain;
}

.footer-brand-col p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-copy span {
  color: rgba(255,255,255,0.6);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.footer-socials a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.footer-badge i {
  font-size: 0.65rem;
  color: #22c55e;
}

/* ═══════════════════════════════════════════
   NAVBAR — Mobile menu
   ═══════════════════════════════════════════ */

/* Every selector here is prefixed with .nav-outer on purpose. blog, blog-post,
   knowledgebase, kb-article and webmail re-declare .nav-center/.nav-right in an
   inline <style> that loads after this file, so a bare single-class selector
   would lose the cascade on those pages no matter what the media query says. */

.nav-outer .nav-burger { display: none; }
.nav-outer .nav-mobile { display: none; }

.nav-outer .nav-mobile {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(16,16,30,0.92);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4,0,0.2,1), visibility 0.22s;
  z-index: 998;
}

.nav-outer.nav-open .nav-mobile {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-outer .nav-mobile-links { display: flex; flex-direction: column; gap: 2px; }

.nav-outer .nav-mobile-links a {
  display: block;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border-radius: 11px;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-outer .nav-mobile-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-outer .nav-mobile-links a.active { background: rgba(99,102,241,0.16); color: #fff; }

.nav-outer .nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.nav-outer .nav-mobile-user {
  padding: 0 4px 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.nav-outer .nav-mobile-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 11px;
  transition: filter 0.18s ease;
}

.nav-outer .nav-mobile-actions a:hover { filter: brightness(1.12); }

.nav-outer .nav-mobile-login {
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.nav-outer .nav-mobile-btn {
  color: #fff;
  background: linear-gradient(135deg, rgba(99,102,241,0.85), rgba(168,85,247,0.85));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 12px rgba(99,102,241,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}

.nav-outer .nav-mobile-logout {
  color: #f87171;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* 960px is where the absolutely-centred .nav-center starts colliding with the
   200px logo and the auth buttons (measured: 18px overlap at 944px, 188px at
   604px). Below it the links move into the panel instead of overlapping. */
@media (max-width: 960px) {
  .nav-outer .nav-center { display: none; }
  .nav-outer .nav-mobile { display: block; }
  .nav-outer .navbar { gap: 10px; }
  /* auto margin on the first flex child packs everything else against the right
     edge, so the burger stays put whether or not .nav-right is visible */
  .nav-outer .nav-brand { margin-right: auto; }

  .nav-outer .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav-outer .nav-burger:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.24);
  }

  .nav-outer .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
  }

  /* gap 5px + bar 2px puts bar centres 7px apart */
  .nav-outer.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-outer.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-outer.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ═══════════════════════════════════════════
   FOOTER — Mobile
   ═══════════════════════════════════════════ */

/* Prefixed with .site-footer / footer.site-footer on purpose: webmail and
   knowledgebase re-declare the bare .footer-* classes in an inline <style>
   after this file, so a single-class selector would lose the cascade there. */

@media (max-width: 860px) {
  /* brand sits above the link groups instead of squeezing into the first cell */
  .site-footer .footer-top {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
  }
  .site-footer .footer-brand-col { grid-column: 1 / -1; }
  .site-footer .footer-brand-col p { max-width: 46ch; }
}

@media (max-width: 620px) {
  footer.site-footer { padding: 40px 20px 24px; }

  /* 2x2 keeps the four link groups roughly a screen tall — stacking all five
     blocks single-file turns the footer into its own scroll */
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    margin-bottom: 32px;
  }

  .site-footer .footer-brand-col { text-align: center; }
  .site-footer .footer-brand-col .footer-brand img {
    height: 44px;
    width: 176px;
    margin: 0 auto;
  }
  .site-footer .footer-brand-col p { max-width: 34ch; margin: 0 auto; }

  .site-footer .footer-col h4 { margin-bottom: 12px; }
  .site-footer .footer-col ul { gap: 4px; }
  /* padding on the anchor lifts the tap target near 40px without opening up
     the visual line spacing */
  .site-footer .footer-col ul li a {
    display: inline-block;
    padding: 6px 0;
    font-size: 0.86rem;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 22px;
  }
  .site-footer .footer-copy { text-align: center; }
  .site-footer .footer-socials { gap: 12px; }
  .site-footer .footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .site-footer .footer-badges { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 380px) {
  footer.site-footer { padding: 34px 16px 22px; }
  .site-footer .footer-top { gap: 26px 14px; }
  .site-footer .footer-col ul li a { font-size: 0.82rem; }
}

/* logo + auth buttons + burger stop fitting on one row here, so the auth
   buttons drop into the panel */
@media (max-width: 620px) {
  .nav-outer .nav-right { display: none; }
  .nav-outer .navbar { height: 58px; padding: 0 16px; }
  .nav-outer .nav-brand img { height: 42px; width: 168px; }
}

@media (max-width: 560px) {
  .nav-outer  { width: calc(100% - 24px); top: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-badges { flex-wrap: wrap; }
  .form-row   { grid-template-columns: 1fr; }
  .auth-card  { padding: 24px 18px; }
}


