/* ============================================
   ZIEN FIT — Auth Screen Styles
   ============================================ */

/* ── Full-Screen Auth Page ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: 24px;
}

/* Animated background orbs */
.auth-page::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: authOrbPulse 8s ease-in-out infinite;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: authOrbPulse 10s ease-in-out infinite reverse;
}

@keyframes authOrbPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50%       { transform: scale(1.15) translate(30px, 30px); opacity: 1; }
}

/* ── Floating particles (reused from landing) ── */
.auth-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Auth Card ── */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.05),
    0 32px 64px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(201, 168, 76, 0.08);
  animation: authCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Brand Mark ── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  cursor: pointer;
}
.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #C9A84C, #7A5F22);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 22px 'Bebas Neue', sans-serif;
  color: #080808;
}
.auth-brand .brand-name {
  font: 700 16px 'Bebas Neue', sans-serif;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* ── Heading ── */
.auth-title {
  font: 700 28px 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
  letter-spacing: 0.01em;
}

/* ── Mode Toggle (Login / Sign Up) ── */
.auth-mode-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.auth-mode-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: transparent;
  border-radius: 7px;
  font: 600 12px 'DM Sans', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-mode-btn.active {
  background: var(--gold);
  color: #080808;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

/* ── Form Fields ── */
.auth-field {
  position: relative;
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font: 600 11px 'DM Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.auth-input-wrap {
  position: relative;
}
.auth-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  padding-right: 44px;
  font: 400 14px 'DM Sans', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.auth-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}
.auth-input::placeholder { color: var(--text-muted); }

/* Password toggle eye icon */
.auth-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.auth-eye-btn:hover { color: var(--gold); }
.auth-eye-btn svg { width: 18px; height: 18px; }

/* ── Error Banner ── */
.auth-error {
  display: none;
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #ff6b7a;
  line-height: 1.4;
}
.auth-error.visible { display: block; animation: authShake 0.4s ease; }

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ── Submit Button ── */
.auth-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #C9A84C, #7A5F22);
  border: none;
  border-radius: 10px;
  font: 700 13px 'DM Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #080808;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.auth-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.auth-submit-btn:hover::after  { background: rgba(255,255,255,0.08); }
.auth-submit-btn:active        { transform: scale(0.98); }
.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading spinner inside button */
.auth-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(8,8,8,0.3);
  border-top-color: #080808;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider-text {
  font: 400 11px 'DM Sans', sans-serif;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Google Button ── */
.auth-google-btn {
  width: 100%;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 13px 'DM Sans', sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.auth-google-btn:hover {
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.05);
  color: var(--gold);
}
.auth-google-btn:active { transform: scale(0.98); }
.auth-google-btn svg   { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Footer text ── */
.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-footer-text a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* ── Name field (only in signup mode) ── */
.auth-name-field { display: none; }
.auth-name-field.visible { display: block; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card { padding: 36px 24px; }
  .auth-title { font-size: 24px; }
}
