@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cabinet+Grotesk:wght@300;400;500;700;800&display=swap');

:root {
  --bg: #060608;
  --surface: #0e0e12;
  --surface2: #16161c;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.14);
  --border-focus: rgba(200,245,58,0.5);
  --lime: #c8f53a;
  --lime-dim: rgba(200,245,58,0.08);
  --lime-glow: rgba(200,245,58,0.15);
  --white: #f2f0ec;
  --muted: #5a5a68;
  --muted2: #3a3a46;
  --danger: #ff5a5a;
  --danger-dim: rgba(255,90,90,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Noise overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}


/* ─── Layout ─── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ─── Left panel ─── */
.auth-left {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, black 0%, transparent 70%);
}

.auth-left-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,245,58,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.auth-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.auth-logo span { color: var(--lime); }

.auth-left-content {
  position: relative;
  z-index: 1;
}

.auth-left-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.auth-left-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 20px;
}

.auth-left-title .stroke {
  -webkit-text-stroke: 1px rgba(255,255,255,0.25);
  color: transparent;
  display: block;
}

.auth-left-title .accent {
  color: var(--lime);
  display: block;
}

.auth-left-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 36px;
}

/* ─── Testimonial card ─── */
.auth-testimonial {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 360px;
}

.auth-testimonial-text {
  font-size: 14px;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
  opacity: 0.85;
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime-dim);
  border: 1px solid rgba(200,245,58,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--lime);
  flex-shrink: 0;
}

.auth-testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.auth-testimonial-role {
  font-size: 11px;
  color: var(--muted);
}

.auth-left-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--muted2);
}

.auth-left-footer a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Right panel ─── */
.auth-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  position: relative;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-form-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 6px;
}

.auth-form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}

.auth-form-sub a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
}

.auth-form-sub a:hover { opacity: 0.8; }

/* ─── Divider ─── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider-text {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Social buttons ─── */
.auth-social {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-social:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
}

.btn-social svg { flex-shrink: 0; }

/* ─── Form fields ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input-wrap {
  position: relative;
}

.field-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted2);
  pointer-events: none;
  transition: color 0.2s;
}

.field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 14px;
  padding: 12px 14px 12px 42px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input::placeholder { color: var(--muted2); }

.field input:focus {
  border-color: var(--border-focus);
  background: var(--surface2);
}

.field input:focus + svg,
.field-input-wrap:focus-within svg {
  color: var(--lime);
}

.field input.error { border-color: var(--danger); }

.field-error {
  font-size: 12px;
  color: var(--danger);
  display: none;
}

.field-error.show { display: block; }

/* ─── Password toggle ─── */
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted2);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.password-toggle:hover { color: var(--white); }

/* ─── Row helpers ─── */
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-row label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.forgot-link {
  font-size: 12px;
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.forgot-link:hover { opacity: 0.7; }

/* ─── Checkbox ─── */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--lime);
  cursor: pointer;
  margin-top: 2px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.checkbox-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Submit button ─── */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--lime);
  border: none;
  border-radius: var(--radius);
  color: #060608;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-submit:hover {
  background: #d8ff4a;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(200,245,58,0.2);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Spinner ─── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6,6,8,0.3);
  border-top-color: #060608;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Password strength ─── */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--surface2);
  transition: background 0.3s ease;
}

.strength-bar.weak   { background: var(--danger); }
.strength-bar.medium { background: #f0a500; }
.strength-bar.strong { background: var(--lime); }

.strength-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  transition: color 0.3s;
}

/* ─── Two column name fields ─── */
.field-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─── Auth footer ─── */
.auth-page-footer {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted2);
}

.auth-page-footer a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 40px 24px;
    min-height: 100vh;
  }

  .auth-form-wrap {
    max-width: 100%;
  }

  .field-two-col {
    grid-template-columns: 1fr;
  }

  .auth-social {
    flex-direction: column;
  }

  .auth-page-footer {
    position: static;
    margin-top: 32px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .auth-right { padding: 32px 18px; }
}
