/* ═══════════════════════════════════════════
   3DParty Login — Production Styles
   Matches site design: radial gradient bg, gold accent, frosted glass
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08080c;
  --card-bg: rgba(30, 30, 30, 0.82);
  --card-border: rgba(255,255,255,0.06);
  --gold: #d4a843;
  --gold-light: #e8c060;
  --gold-dark: #b8891e;
  --text: #f4f4f5;
  --text-dim: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.3);
  --input-bg: rgba(40,40,40,0.7);
  --input-border: rgba(255,255,255,0.08);
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #08080c;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ── Ambient background — cycling hero images ── */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* ═══ DO NOT CHANGE the object-fit, object-position, width, or height of .login-bg img ═══
     position:absolute + inset:0 are ONLY for stacking images for cycling.
     Blink effect: active=visible, all others=hidden. Transition on opacity only. */
.login-bg img {
  position: absolute;
  inset: 0;
  left: -55px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.login-bg img.active {
  opacity: 1;
}

/* ── Container — left-aligned on desktop, centered on mobile ── */
.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  padding: 40px 20px;
  margin: 0 auto;
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1);
}
@media (min-width: 769px) {
  .login-container {
    align-items: flex-start;
    margin-left: 6vw;
  }
}
/* ── Gradient veil behind the login panel ── */
.login-container::before {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 62%;
  background: linear-gradient(to right, rgba(20,16,10,0.75) 0%, rgba(20,16,10,0.48) 55%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
.login-back { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .login-container::before { display: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Back link ── */
.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
.login-back:hover { color: var(--gold-light); }

/* ── Card (frosted glass matching site) ── */
.login-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 60px rgba(212,168,67,0.05);
  position: relative;
  overflow: hidden;
}
/* Top accent line — subtle gradient like pricing cards */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ── Logo ── */
.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.login-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}
.login-brand {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e8c060, #d4a843);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo .beta-badge {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d0d12;
  background: linear-gradient(135deg, #e8c060, #d4a843);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: super;
  line-height: 1;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

/* ── Header ── */
.login-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.login-header p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Error / success ── */
.login-error {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  text-align: center;
  margin-bottom: 16px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.22);
  color: #f87171;
}
.login-error.success {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.22);
  color: #4ade80;
}

/* ── Email warning (disposable email detection) ── */
.email-warning {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  margin-top: 6px;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.22);
  color: #fbbf24;
  line-height: 1.4;
}
.email-warning.error {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.22);
  color: #f87171;
}

/* ── Google button ── */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  font-family: inherit;
}
.btn-google:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.btn-google:active { transform: translateY(0); }

/* ── Divider ── */
.login-divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
  gap: 14px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.login-divider span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-weight: 500;
}

/* ── Form ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
}
.form-group input {
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: rgba(212,168,67,0.4);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.1);
}
.form-group input::placeholder {
  color: rgba(255,255,255,0.2);
}

/* ── Submit (gold gradient like Pro tier CTA) ── */
.btn-submit {
  width: 100%;
  padding: 12px 20px;
  margin-top: 4px;
  background: linear-gradient(135deg, #d4a843 0%, #b8891e 100%);
  border: none;
  border-radius: var(--radius);
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  box-shadow: 0 4px 16px rgba(212,168,67,0.2);
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e8c060 0%, #d4a843 100%);
  box-shadow: 0 6px 24px rgba(212,168,67,0.35);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26,26,26,0.25);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toggle ── */
.login-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.toggle-link {
  background: none;
  border: none;
  color: var(--gold-light);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 2px 4px;
  transition: color 0.2s;
}
.toggle-link:hover { color: #e8c060; }

/* ── Footer ── */
.login-footer {
  margin-top: 20px;
  text-align: center;
}
.login-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.login-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.login-footer a:hover { color: var(--gold-light); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-container { padding: 28px 16px; margin: 0 auto; align-items: center; }
  .login-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .login-header h1 { font-size: 1.25rem; }
}

@media (max-width: 360px) {
  .login-container { margin: 0 auto; align-items: center; }
  .login-card { padding: 24px 16px; }
  .btn-google, .btn-submit { font-size: 0.82rem; padding: 11px 14px; }
}
