/* ─── AUTH PAGES ─── */
.auth-body {
  background: var(--bg);
  min-height: 100vh;
}

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

.auth-left {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.auth-left::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,184,166,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,184,166,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 70%, black 0%, transparent 80%);
}

.auth-left__inner {
  padding: 3rem;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-feature {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--text-dim);
}

.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem;
}

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

.auth-form-header {
  margin-bottom: 2rem;
}
.auth-form-header h2 { margin-bottom: 0.4rem; }
.auth-form-header p { font-size: 0.875rem; }
.auth-form-header a { color: var(--teal); }

/* ─── STEPS ─── */
.signup-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2rem;
}

.signup-step {
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}

.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dimmer);
  transition: var(--transition);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-dimmer);
  transition: var(--transition);
}

.signup-step.active .step-num {
  border-color: var(--teal);
  background: rgba(20,184,166,0.1);
  color: var(--teal);
}
.signup-step.active .step-label { color: var(--teal); }

.signup-step.done .step-num {
  border-color: var(--teal);
  background: var(--teal);
  color: #080c0f;
}
.signup-step.done .step-label { color: var(--text-dim); }

.step-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 0.5rem;
}

/* ─── FORM ELEMENTS ─── */
.form-step { display: flex; flex-direction: column; gap: 1rem; }
.form-step.hidden { display: none; }

.form-group {
  display: flex; flex-direction: column; gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.875rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dimmer); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: none;
}

.form-group select option { background: var(--bg-3); }

.form-group textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dimmer);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dimmer);
  text-align: center;
}
.form-note a { color: var(--teal); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ─── PASSWORD ─── */
.input-password { position: relative; }
.input-password input { padding-right: 3rem; }
.pw-toggle {
  position: absolute; right: 0.875rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-dimmer); cursor: none;
  display: flex; align-items: center;
  transition: var(--transition);
}
.pw-toggle:hover { color: var(--text); }

.pw-strength {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 0.4rem;
  overflow: hidden;
}
.pw-bar {
  height: 100%; width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

/* ─── CHECKBOX ─── */
.checkbox-group {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.checkbox-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-dim);
  cursor: none;
}
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px;
  accent-color: var(--teal);
  cursor: none;
  flex-shrink: 0;
  width: auto; padding: 0;
}

/* ─── CONFIRM CARD ─── */
.confirm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.confirm-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
}
.confirm-row:last-child { border: none; }
.confirm-row span:first-child { color: var(--text-dimmer); }
.confirm-row span:last-child { color: var(--text); font-weight: 500; }

/* ─── SUCCESS ─── */
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ─── DIVIDER ─── */
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { font-size: 0.75rem; color: var(--text-dimmer); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.25rem; align-items: flex-start; min-height: 100vh; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
}
