.login-wrapper {
  display: flex; align-items: center; justify-content: center;
  flex: 1; min-height: calc(100vh - 80px);
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 44px 36px;
  width: 100%; max-width: 420px;
  box-shadow: 0 0 60px rgba(58,134,255,0.12);
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 24px;
}
.login-logo img { height: 44px; }
.login-logo span {
  font-family: 'Sarabun', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--text);
}
.login-logo span b { color: var(--accent); }
.login-title {
  font-family: 'Sarabun', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--text); text-align: center;
  margin-bottom: 8px;
}
.login-subtitle {
  font-family: 'Sarabun', sans-serif;
  font-size: 13px; color: var(--muted);
  text-align: center; margin-bottom: 24px; line-height: 1.6;
}
.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-family: 'Sarabun', sans-serif;
  font-size: 13px; color: var(--muted);
  margin-bottom: 6px;
}
.login-field input {
  width: 100%; box-sizing: border-box;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px;
  color: var(--text);
  font-family: 'Sarabun', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.login-field input:focus { border-color: var(--accent); }
.login-error {
  background: rgba(184,50,82,0.15);
  border: 1px solid rgba(184,50,82,0.4);
  border-radius: 8px; padding: 10px 14px;
  color: #ff6b8a;
  font-family: 'Sarabun', sans-serif; font-size: 13px;
  margin-bottom: 16px; text-align: center;
}
.login-success {
  background: rgba(6,214,160,0.12);
  border: 1px solid rgba(6,214,160,0.35);
  border-radius: 8px; padding: 10px 14px;
  color: #06d6a0;
  font-family: 'Sarabun', sans-serif; font-size: 13px;
  margin-bottom: 16px; text-align: center;
}
.login-btn {
  width: 100%; padding: 13px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Sarabun', sans-serif;
  font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 4px;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex; align-items: center; justify-content: center;
}
.login-btn:hover { background: #2563d4; transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.login-hint {
  text-align: center; margin-top: 18px;
  font-family: 'Sarabun', sans-serif; font-size: 12px;
  color: var(--muted);
}
.login-hint a { color: var(--accent); text-decoration: none; }
.step-indicator {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-bottom: 22px;
}
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sarabun', sans-serif; font-size: 12px; font-weight: 700;
  border: 2px solid var(--border); color: var(--muted);
  transition: all 0.2s;
}
.step-dot.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.step-dot.done {
  background: rgba(6,214,160,0.15); border-color: #06d6a0; color: #06d6a0;
}
.step-line {
  flex: 1; max-width: 40px; height: 2px;
  background: var(--border); border-radius: 2px;
}
.user-found-box {
  background: rgba(6,214,160,0.08);
  border: 1px solid rgba(6,214,160,0.25);
  border-radius: 10px; padding: 12px 16px;
  margin-bottom: 20px;
  font-family: 'Sarabun', sans-serif; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.user-found-box span { color: var(--text); font-weight: 600; font-size: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--muted); display: flex; align-items: center;
  transition: color 0.15s;
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { display: block; }
