/* auth.css — Auth pages: login, signup, verify, resend
   Matches koynservices.xyz design spec: dark luxury, purple accent #BF40BF, Sora font */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:           #09090B;
  --bg-2:         #111115;
  --fg:           #fafafa;
  --fg-muted:     #DEE2E6;
  --muted:        rgb(113,113,122);
  --accent:       #BF40BF;
  --accent-hover: #a838a8;
  --accent-dim:   rgba(191, 64, 191, 0.12);
  --accent-glow:  rgba(191, 64, 191, 0.25);
  --border:       rgba(255,255,255,0.05);
  --border-hover: rgba(191,64,191,0.5);
  --error-bg:     rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.3);
  --error-text:   #EF4444;
  --success-bg:   rgba(62, 207, 142, 0.1);
  --success-border: rgba(62, 207, 142, 0.3);
  --success-text: #3ECF8E;
  --font:         'Sora', sans-serif;
  --r-pill:       9999px;
  --r-md:         12px;
  --r-lg:         20px;
  --ease:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Nav */
.auth-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}
.auth-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fg);
  text-decoration: none;
}
.auth-logo span { color: var(--accent); }

/* Main layout */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 85px);
  padding: 48px 24px;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  box-shadow:
    0 0 0 1px rgba(191,64,191,0.06),
    0 40px 80px rgba(0,0,0,.5);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-icon-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-icon {
  width: 64px; height: 64px;
  background: var(--accent-dim);
  border: 1px solid rgba(191,64,191,0.2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.auth-subtitle { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* Messages */
.auth-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  font-size: 13px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.auth-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  font-size: 13px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--fg); }
.form-input {
  width: 100%;
  background: rgba(250,250,250,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--fg);
  transition: var(--ease);
  outline: none;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  border-color: rgba(191,64,191,0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: var(--ease);
  box-shadow: 0 4px 20px rgba(191,64,191,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 8px 30px rgba(191,64,191,0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* Divider between primary auth action and OAuth */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -8px 0 0;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Google OAuth button — secondary surface, matches primary pill geometry */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: var(--ease);
}
.btn-google svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn-google:hover {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  box-shadow: 0 8px 30px rgba(191,64,191,0.45);
  transform: translateY(-1px);
}
.btn-google:active { transform: translateY(0); }

/* Bottom switch */
.auth-switch { text-align: center; font-size: 13px; color: var(--fg-muted); margin-top: 24px; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Honeypot */
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

/* Verification code input */
.code-input-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.code-digit {
  width: 52px;
  height: 60px;
  background: rgba(250,250,250,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--fg);
  font-family: var(--font);
  outline: none;
  transition: var(--ease);
}
.code-digit:focus {
  border-color: rgba(191,64,191,0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Resend */
.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
}
.resend-label { font-size: 13px; color: var(--fg-muted); }
.btn-ghost-link {
  background: none; border: none; color: var(--accent);
  font-size: 13px; font-family: inherit; cursor: pointer; padding: 0;
  text-decoration: underline;
}
.btn-ghost-link:disabled { opacity: .5; cursor: not-allowed; }

/* Responsive */
@media (max-width: 500px) {
  .auth-card { padding: 32px 24px; }
  .code-digit { width: 44px; height: 52px; font-size: 24px; }
}

/* Dashboard onboarding checklist */
.onboarding-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 48px;
  transition: var(--ease);
  position: relative;
}
.onboarding-card:hover {
  border-color: rgba(191,64,191,0.3);
}

.onboarding-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.onboarding-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.onboarding-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.onboarding-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--ease);
  background: transparent;
}
.onboarding-step:hover {
  border-color: rgba(191,64,191,0.4);
  background: var(--accent-dim);
}

.onboarding-step--done {
  opacity: 0.45;
}
.onboarding-step--done .onboarding-step-num {
  background: var(--success-border);
  color: var(--success-text);
}

.onboarding-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-step-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.onboarding-step-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.onboarding-step-action {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.onboarding-step-action:hover {
  text-decoration: underline;
}
.onboarding-step-action--muted {
  color: var(--muted);
  cursor: default;
}

.onboarding-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm, 6px);
  width: 32px;
  height: 32px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0;
}
.onboarding-close:hover {
  color: var(--fg);
  border-color: rgba(191,64,191,0.3);
}

@media (max-width: 600px) {
  .onboarding-step {
    grid-template-columns: 28px 1fr;
  }
  .onboarding-step-action {
    display: none;
  }
}