/* ============================================================
   SlugHosting — Auth Pages CSS (Login / Register)
   Fully responsive, polished, all-device optimised
   ============================================================ */

/* ── Page Shell ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── Top Bar ── */
.auth-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.auth-topbar .auth-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-topbar .auth-nav-hint {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Two-column Layout ── */
.auth-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* ── Left Branding Panel ── */
.auth-left {
  background: linear-gradient(160deg, #0b0c1e 0%, #0f1025 50%, #0c1032 100%);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 48px 36px;
}
.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.auth-left-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent 65%);
  top: -120px;
  left: -100px;
  pointer-events: none;
}
.auth-left-glow2 {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.12), transparent 65%);
  bottom: -80px;
  right: -60px;
  pointer-events: none;
}
.auth-left-inner {
  position: relative;
  z-index: 1;
}

/* Brand mark in left panel */
.auth-left-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 52px;
  color: var(--text);
}

/* Headline */
.auth-promo-title {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.025em;
  margin-bottom: 14px;
  color: var(--text);
}
.auth-promo-sub {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 380px;
}

/* Perks list */
.auth-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-perk .perk-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-perk strong {
  color: var(--text);
}

/* Trust badge */
.auth-trust-badge {
  margin-top: 34px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-trust-badge .trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(16,185,129,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--success);
  flex-shrink: 0;
}
.auth-trust-badge .trust-text strong {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
}
.auth-trust-badge .trust-text span {
  font-size: .75rem;
  color: var(--text-muted);
}

/* Left footer */
.auth-left-footer {
  position: relative;
  z-index: 1;
  font-size: .78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Right Form Panel ── */
.auth-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}
.auth-form-wrap {
  width: 100%;
  max-width: 430px;
}
.auth-form-header {
  margin-bottom: 30px;
}
.auth-form-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 6px;
  color: var(--text);
}
.auth-form-header p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Social buttons */
.auth-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  font-family: var(--font);
  white-space: nowrap;
}
.btn-social .social-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}
.btn-social:hover {
  background: var(--bg-card-h);
}
.btn-social.discord:hover {
  border-color: #5865f2;
  color: #5865f2;
}
.btn-social.google:hover {
  border-color: #ea4335;
  color: #ea4335;
}
.btn-social:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Footer link */
.auth-switch-link {
  text-align: center;
  margin-top: 22px;
  font-size: .87rem;
  color: var(--text-muted);
}
.auth-switch-link a {
  color: var(--primary-light);
  font-weight: 600;
}
.auth-switch-link a:hover {
  text-decoration: underline;
}
.auth-back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: .8rem;
  margin-top: 12px;
  transition: var(--t);
}
.auth-back-home:hover {
  color: var(--primary-light);
}

/* Password wrapper */
.pass-wrapper {
  position: relative;
}
.pass-wrapper .form-control {
  padding-right: 44px;
}
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: .88rem;
  padding: 4px;
  transition: var(--t);
}
.toggle-pass:hover { color: var(--text); }

/* Password strength */
.strength-track {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-3);
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width .32s ease, background .32s ease;
}
.strength-hint {
  font-size: .74rem;
  color: var(--text-dim);
  margin-top: 5px;
  min-height: 14px;
}

/* Checkbox */
.check-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.check-group input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.check-group span {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.check-group a {
  color: var(--primary-light);
}
.check-group a:hover {
  text-decoration: underline;
}

/* Forgot password link row */
.pass-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.pass-label-row label {
  margin: 0 !important;
}
.pass-label-row a {
  font-size: .78rem;
  color: var(--primary-light);
}
.pass-label-row a:hover {
  text-decoration: underline;
}

/* Remember me row */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .auth-left {
    padding: 40px 36px 28px;
  }
  .auth-promo-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 860px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 40px 28px;
    align-items: flex-start;
    min-height: calc(100vh - 64px);
  }
  .auth-form-wrap {
    max-width: 100%;
    padding-top: 8px;
  }
}

@media (max-width: 520px) {
  .auth-topbar {
    padding: 0 16px;
  }
  .auth-topbar .auth-nav-hint {
    display: none;
  }
  .auth-right {
    padding: 28px 16px;
  }
  .auth-form-header h1 {
    font-size: 1.45rem;
  }
  .auth-social-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-social {
    padding: 10px 10px;
    font-size: .82rem;
    gap: 7px;
  }
}

@media (max-width: 380px) {
  .auth-right {
    padding: 20px 12px;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
}
