.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.2rem;
}
.auth-logo { margin-bottom: 2rem; }
.auth-logo a {
  font-size: 1.7rem; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.auth-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.3rem; }
.auth-sub   { font-size: 0.9rem; color: var(--text2); margin-bottom: 2rem; }

.auth-alert { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 1.4rem; }
.auth-alert-error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: #fca5a5; }
.auth-alert-success { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.25);  color: var(--green); }

.captcha-row { display: flex; gap: 0.75rem; align-items: center; }
.captcha-input { flex: 1; letter-spacing: 6px; font-size: 1.1rem; }
.captcha-img {
  height: 46px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer; flex-shrink: 0;
  transition: opacity 0.2s;
}
.captcha-img:hover { opacity: 0.8; }

.auth-footer-links { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; margin-top: 1.6rem; font-size: 0.85rem; }
.auth-footer-links a { color: var(--accent3); text-decoration: none; transition: color 0.2s; }
.auth-footer-links a:hover { color: var(--accent2); }
.auth-link-btn { background: none; border: none; color: var(--text3); font-size: 0.85rem; cursor: pointer; font-family: inherit; transition: color 0.2s; }
.auth-link-btn:hover { color: var(--text2); }

.auth-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.auth-step {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--text3);
  position: relative; flex-shrink: 0; transition: all 0.3s;
}
.auth-step span { position: absolute; top: calc(100% + 5px); font-size: 0.72rem; white-space: nowrap; color: var(--text3); }
.auth-step.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: white; }
.auth-step.active span { color: var(--accent3); }
.auth-step-line { flex: 1; height: 2px; background: var(--border); max-width: 80px; transition: background 0.3s; }
.auth-step-line.active { background: var(--accent); }

.auth-success { text-align: center; padding: 2rem 0; }
.auth-success-icon {
  width: 64px; height: 64px;
  background: rgba(74,222,128,0.1); border: 2px solid rgba(74,222,128,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--green); margin: 0 auto 1.2rem;
}
.auth-success p { color: var(--text2); font-size: 0.95rem; }

.auth-dialog {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0; color: var(--text);
  max-width: 360px; width: 90%;
}
.auth-dialog::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.auth-dialog-inner { padding: 2rem; text-align: center; font-size: 0.95rem; line-height: 1.8; color: var(--text2); }
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}