:root {
  --auth-orange-50: #fff3e0;
  --auth-orange-100: #ffe0b2;
  --auth-orange-200: #ffcc80;
  --auth-orange-300: #ffb74d;
  --auth-orange-400: #FF8F00;
  --auth-orange-500: #FF6F00;
  --auth-orange-600: #E65100;
  --auth-ink: #171411;
  --auth-muted: #171411;
}

html, body {
  font-family: "Be Vietnam Pro", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

.auth-mock-page [hidden] {
  display: none !important;
}

.auth-mock-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 199, 77, 0.24), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 199, 77, 0.16), transparent 24%),
    linear-gradient(180deg, #FF6F00 0%, #FF6F00 100%);
  color: var(--auth-ink);
}

.auth-mock-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.auth-mock-stage {
  width: min(100%, 560px);
}

.auth-mock-card {
  position: relative;
  overflow: visible;
  border-radius: 32px;
  padding: 24px 22px 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 46px rgba(98, 55, 0, 0.16);
}

.auth-mock-decor {
  display: none;
}

.auth-mode-tabs,
.auth-mock-form,
.auth-help-links,
.notice {
  position: relative;
  z-index: 1;
}

.auth-mock-head {
  position: relative;
  z-index: 10;
}

.auth-mock-head {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.auth-mock-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-mock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(247, 154, 6, 0.34);
  color: var(--auth-orange-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-mock-head__title {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(31px, 7vw, 42px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-mock-head__sub {
  margin: 8px 0 0;
  max-width: 410px;
  color: var(--auth-ink);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.auth-mock-head__tools--compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.login-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(247, 154, 6, 0.34);
  color: var(--auth-orange-600);
}

.login-lang-pill__icon {
  font-size: 14px;
}

.login-lang-pill__select {
  min-width: 52px;
  font-weight: 700;
  color: var(--auth-orange-600);
}

.auth-home-link {
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 700;
}

.auth-home-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(247, 154, 6, 0.34);
  background: #ffffff;
  color: var(--auth-orange-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-home-icon svg {
  width: 18px;
  height: 18px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 18px;
  background: var(--auth-orange-100);
}

.auth-mode-btn {
  border: none;
  background: transparent;
  color: var(--auth-ink);
  border-radius: 14px;
  min-height: 44px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-btn.is-active {
  background: linear-gradient(180deg, var(--auth-orange-400), var(--auth-orange-500));
  color: #fff;
  box-shadow: 0 8px 18px rgba(247, 154, 6, 0.26);
}

.auth-mock-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-ink);
}

.auth-field__input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(247, 154, 6, 0.26);
  border-radius: 16px;
  background: #ffffff;
  font-family: inherit;
  font-size: 15px;
  color: var(--auth-ink);
}

.auth-field__input::placeholder {
  color: #7e766e;
}

.auth-field__input:focus {
  border-color: var(--auth-orange-400);
  box-shadow: 0 0 0 4px rgba(247, 154, 6, 0.14);
}

.auth-field__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #8a8078;
}

.auth-role-row {
  display: grid;
  gap: 10px;
  margin: 2px 0 4px;
  padding: 2px 2px 0;
}

.auth-role-question {
  margin: 0;
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 700;
}

.auth-role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(247, 154, 6, 0.26);
  background: #ffffff;
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: .18s ease;
}

.auth-role-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-role-pill.is-selected {
  border-color: var(--auth-orange-400);
  background: var(--auth-orange-100);
  box-shadow: 0 8px 16px rgba(247, 154, 6, 0.12);
}

.auth-submit-btn {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--auth-orange-400), var(--auth-orange-500));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 22px rgba(247, 154, 6, 0.22);
}

.auth-google-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(247, 154, 6, 0.22);
  background: #ffffff;
  color: #1f1c18;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.auth-google-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.auth-apple-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 10px;
}

.auth-apple-btn[hidden] { display: none; }

.auth-apple-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.auth-draft-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-draft-divider::before,
.auth-draft-divider::after {
  content: '';
  height: 1px;
  background: rgba(247, 154, 6, 0.22);
  flex: 1;
}

.auth-help-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.auth-help-links a {
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 700;
}

.notice.ok,
.notice.err {
  margin-top: 12px;
  border-radius: 14px;
}

/* ── Forgot-password title block ── */
.auth-forgot-title {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.auth-forgot-title__icon {
  width: 44px;
  height: 44px;
  color: var(--auth-orange-500);
  margin-bottom: 10px;
}

.auth-forgot-title__text {
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  color: var(--auth-ink);
  letter-spacing: -0.02em;
}

.auth-forgot-title__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6b6158;
  font-weight: 500;
}

/* ── Action handler states ── */
.auth-action-state { position: relative; z-index: 1; }

.auth-forgot-title__icon--success { color: #16a34a; }
.auth-forgot-title__icon--error { color: #dc2626; }

.auth-action-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: 4px solid var(--auth-orange-100);
  border-top-color: var(--auth-orange-500);
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .auth-mock-shell {
    padding: 10px;
  }

  .auth-mock-card {
    border-radius: 26px;
    padding: 20px 16px 16px;
  }

  .auth-mock-chip-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .auth-mock-head__title {
    font-size: 30px;
  }

  .auth-mock-head__sub {
    font-size: 13px;
  }

  .auth-mock-head__tools--compact {
    flex-wrap: wrap;
  }

  .auth-mode-btn,
  .auth-submit-btn,
  .auth-google-btn,
  .auth-field__input {
    min-height: 46px;
  }
}

/* === Step containers === */
.auth-step {
  display: grid;
  gap: 16px;
  padding: 4px 0;
}

.auth-step__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--auth-ink);
  text-align: center;
  margin: 0;
}

/* === Role cards — compact button style === */
.auth-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-role-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s cubic-bezier(.22,1,.36,1),
              box-shadow .2s cubic-bezier(.22,1,.36,1);
}

.auth-role-card[data-role-select="seeker"] {
  background: linear-gradient(160deg, #7c3aed, #6d28d9);
  box-shadow: 0 4px 14px rgba(109,40,217,.22);
}

.auth-role-card[data-role-select="recruiter"] {
  background: linear-gradient(160deg, #0d9488, #0f766e);
  box-shadow: 0 4px 14px rgba(13,148,136,.22);
}

.auth-role-card:hover {
  transform: translateY(-2px);
}

.auth-role-card[data-role-select="seeker"]:hover {
  box-shadow: 0 8px 22px rgba(109,40,217,.30);
}

.auth-role-card[data-role-select="recruiter"]:hover {
  box-shadow: 0 8px 22px rgba(13,148,136,.30);
}

.auth-role-card:active {
  transform: scale(.97);
  box-shadow: none;
}

/* ── Icon ── */
.auth-role-card__icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.18);
}

.auth-role-card__icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

/* ── Label ── */
.auth-role-card__label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* === Terms agreement === */
.auth-terms-box {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  background: #faf8f5;
  border: 1px solid #e8e4dd;
  border-radius: 14px;
}

.auth-terms-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--auth-ink);
  letter-spacing: -0.01em;
}

.auth-terms-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b6158;
  line-height: 1.5;
}

.auth-terms-consent {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8a8078;
}

.auth-terms-consent a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: underline;
}

.auth-terms-consent a:hover {
  color: #1e3a8a;
}

.auth-terms-consent strong {
  font-weight: 700;
  color: #6b6158;
}

/* Login consent note */
.auth-login-consent {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #4a4541;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-login-consent a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: underline;
}

.auth-login-consent a:hover {
  color: #1e3a8a;
}

/* Back button */
.auth-back-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: transparent;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}

.auth-back-btn:hover {
  background: #f5f3f0;
}

/* === Lần 511: Footer trên login page — đổi text trắng để dễ đọc trên nền cam === */
.auth-mock-page .footer { color: #ffffff; border-top-color: rgba(255, 255, 255, 0.35); }
.auth-mock-page .footer-links a { color: #ffffff; }
.auth-mock-page .footer-links a:hover { color: #fff8e7; text-decoration: underline; }
.auth-mock-page .footer-admin,
.auth-mock-page .footer-links a.footer-admin { color: #ffffff !important; }
