:root {
  --bg: #0B0B0B;
  --surface: #141414;
  --card: #1A1A1A;
  --green: #1ED760;
  --green-dim: #17b34e;
  --white: #FFFFFF;
  --grey: #888888;
  --border: #2A2A2A;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30,215,96,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.back-link {
  position: fixed;
  top: 24px;
  left: 32px;
  color: var(--grey);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }

.auth-wrap {
  flex: 1;
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* LEFT PANEL */
.auth-left {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(30,215,96,0.04) 0%, transparent 60%);
}

.logo { display: block; line-height: 0; margin-bottom: 48px;}
.logo img { width: 120px; height: auto; display: block; }




/* .auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--green);
  margin-bottom: 48px;
} */

.auth-heading {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.auth-sub {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.auth-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--grey);
}

.perk-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30,215,96,0.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* RIGHT PANEL */
.auth-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  animation: fadeUp 0.5s ease both;
}

.auth-box-header { margin-bottom: 32px; }

.auth-box-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.auth-box-header p {
  font-size: 14px;
  color: var(--grey);
}

/* STEPS */
.step { display: none; }
.step.active { display: block; animation: fadeUp 0.3s ease both; }

/* GOOGLE BUTTON */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.2s;
}
.google-btn:hover { background: #f0f0f0; transform: translateY(-2px); }
.google-btn:active { transform: translateY(0); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--grey);
  font-size: 12px;
  letter-spacing: 1px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-note {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.6;
  text-align: center;
}
.auth-note a { color: var(--green); text-decoration: none; }

/* LOADING */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-wrap p {
  font-size: 14px;
  color: var(--grey);
}

/* SUCCESS */
.success-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #0fa83a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: #000;
  margin: 0 auto 16px;
}

#stepSuccess h3 {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.success-email {
  text-align: center;
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 16px;
}

.success-msg {
  text-align: center;
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 24px;
  background: rgba(30,215,96,0.07);
  border: 1px solid rgba(30,215,96,0.15);
  border-radius: 8px;
  padding: 12px;
}

.btn-green {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.btn-green:hover { background: var(--green-dim); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .auth-wrap { flex-direction: column; }
  .auth-left { padding: 80px 32px 40px; border-right: none; border-bottom: 1px solid var(--border); }
  .auth-right { width: 100%; padding: 40px 24px; }
}