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

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
}

/* LEFT VISUAL */
.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=1200&q=80') center/cover no-repeat;
  filter: brightness(0.35);
  transform: scale(1.03);
  transition: transform 12s ease;
}

.auth-visual:hover .auth-visual-bg { transform: scale(1); }

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.5) 0%, rgba(212,160,23,0.12) 100%);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.auth-logo-text .brand {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  display: block;
}

.auth-logo-text .tagline {
  font-size: 10px;
  color: rgba(212,160,23,0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.auth-quote blockquote {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  font-style: italic;
}

.auth-quote blockquote em { color: var(--gold); }
.auth-quote cite { font-size: 12px; color: rgba(245,240,232,0.55); letter-spacing: 2px; text-transform: uppercase; font-style: normal; }

.perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.perk-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,160,23,0.18);
  padding: 18px;
  backdrop-filter: blur(4px);
}

.perk-card i { font-size: 22px; color: var(--gold); margin-bottom: 8px; display: block; }
.perk-card strong { font-size: 13px; color: var(--white); display: block; margin-bottom: 4px; }
.perk-card span { font-size: 12px; color: rgba(245,240,232,0.5); line-height: 1.5; }

/* RIGHT FORM */
.auth-form-panel {
  background: var(--dark);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px;
  overflow-y: auto;
}

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

.auth-form-header {
  margin-bottom: 36px;
}

.auth-form-header .welcome {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.auth-form-header h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}

.auth-form-header h1 em { font-style: italic; color: var(--gold); }
.auth-form-header p { font-size: 14px; color: var(--gray-light); line-height: 1.7; }

/* Progress steps */
.form-steps {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  position: relative;
}

.form-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: rgba(212,160,23,0.15);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 2px solid rgba(212,160,23,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-mid);
  transition: var(--transition);
}

.step.active .step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.step.done .step-circle {
  background: rgba(76,175,80,0.2);
  border-color: #4caf50;
  color: #4caf50;
}

.step-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-mid); }
.step.active .step-label { color: var(--gold); }
.step.done .step-label { color: #4caf50; }

/* Social */
.social-btns { display: flex; gap: 12px; margin-bottom: 24px; }

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  background: var(--dark-2);
  border: 1px solid rgba(212,160,23,0.15);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover { border-color: var(--gold); background: var(--dark-3); }
.social-btn i { font-size: 18px; }


.divider-text {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--gray-mid);
  font-size: 12px;
}

.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* Form fields */
.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-form .form-group { margin-bottom: 18px; }

.auth-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.input-wrap { position: relative; display: flex; align-items: center; }

.input-wrap input,
.input-wrap select {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid rgba(212,160,23,0.18);
  color: var(--cream);
  padding: 13px 44px 13px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--gold);
  background: rgba(212,160,23,0.04);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.06);
}

.input-wrap input::placeholder { color: var(--gray-mid); }
.input-wrap input.error { border-color: #e74c3c; }
.input-wrap input.success { border-color: #4caf50; }

.input-icon { position: absolute; right: 14px; color: var(--gray-mid); font-size: 17px; pointer-events: none; transition: var(--transition); }
.input-wrap input:focus ~ .input-icon { color: var(--gold); }

.toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--gray-mid);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  display: flex;
  align-items: center;
}

.toggle-pw:hover { color: var(--gold); }

.field-error { font-size: 12px; color: #e74c3c; margin-top: 5px; display: none; }
.field-error.show { display: block; }

/* Password strength */
.pw-strength { margin-top: 8px; }

.pw-strength-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-label { font-size: 11px; color: var(--gray-mid); }

/* Terms */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.6;
}

.terms-check input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.terms-check a { color: var(--gold); text-decoration: none; }
.terms-check a:hover { text-decoration: underline; }

.terms-error { font-size: 12px; color: #e74c3c; margin-bottom: 16px; display: none; }
.terms-error.show { display: block; }

/* Submit */
.submit-btn {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,160,23,0.3); }
.submit-btn:active { transform: translateY(0); }
.submit-btn.loading { pointer-events: none; opacity: 0.8; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.3); border-top-color: var(--black); border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.submit-btn.loading .spinner { display: block; }
.submit-btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  padding: 13px 16px;
  border-left: 3px solid;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
  align-items: center;
  gap: 10px;
}

.form-alert.error { border-color: #e74c3c; background: rgba(231,76,60,0.08); color: #e74c3c; }
.form-alert.success { border-color: #4caf50; background: rgba(76,175,80,0.08); color: #4caf50; }
.form-alert.show { display: flex; }

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-light);
}

.auth-switch a { color: var(--gold); text-decoration: none; font-weight: 600; transition: var(--transition); }
.auth-switch a:hover { color: var(--gold-light); text-decoration: underline; }

/* Success overlay */
.success-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.success-overlay.show { display: flex; }

.success-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(212,160,23,0.1);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--gold);
  margin-bottom: 28px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-overlay h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 300;
}

.success-overlay h2 em { color: var(--gold); font-style: italic; }
.success-overlay p { font-size: 14px; color: var(--gray-light); margin-bottom: 30px; line-height: 1.7; max-width: 320px; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-panel { padding: 60px 32px; }
}

@media (max-width: 600px) {
  .auth-form-panel { padding: 40px 20px; }
  .auth-form .form-row { grid-template-columns: 1fr; }
  .auth-form-header h1 { font-size: 32px; }
  .social-btns { flex-direction: column; }
}