.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 500;
  padding: 16px;
}

.auth-overlay.hidden { display: none; }

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  animation: fadeIn 0.25s ease-out;
}

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

/* Landing */
.auth-landing { text-align: center; }

.auth-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text);
}

.auth-brand {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.auth-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Buttons */
.auth-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: inherit;
}

.auth-btn.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.auth-btn.primary:hover { opacity: 0.9; }

.auth-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-top: 10px;
}

.auth-btn.secondary:hover { background: var(--hover); }

.auth-btn + .auth-btn { margin-top: 10px; }

/* Wizard */
.auth-back {
  display: none;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  font-family: inherit;
  transition: color 0.15s;
}

.auth-back:hover { color: var(--text); }

.auth-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.auth-wizard-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.auth-wizard-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-dots {
  display: flex;
  gap: 5px;
}

.auth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}

.auth-dot.active { background: var(--accent); }

/* Field */
.auth-field { margin-bottom: 20px; }

.auth-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.auth-input:focus { border-color: var(--accent); }

.auth-input.input-error { border-color: #ef4444; }

.auth-input::placeholder { color: var(--text-muted); opacity: 0.5; }

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

.auth-eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.auth-eye:hover { color: var(--text); }

/* Password strength */
.auth-strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.auth-strength-seg {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  transition: background 0.3s;
}

.auth-strength-text {
  font-size: 11px;
  text-align: right;
  margin-top: 4px;
}

/* Error */
.auth-err {
  display: none;
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

/* Switch */
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-switch a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover { text-decoration: underline; }

/* Success */
.auth-success { text-align: center; padding: 20px 0; }

.auth-success-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text);
}

.auth-success-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-success-text {
  font-size: 13px;
  color: var(--text-muted);
}
