@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Sora:wght@600;700&display=swap');

:root {
  --bg-1: #0f172a;
  --bg-2: #1d4ed8;
  --bg-3: #0ea5e9;
  --card: rgba(255, 255, 255, 0.94);
  --text: #0f172a;
  --muted: #475569;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --ring: rgba(15, 118, 110, 0.25);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.5), transparent 35%),
    radial-gradient(circle at 86% 14%, rgba(29, 78, 216, 0.45), transparent 34%),
    linear-gradient(135deg, var(--bg-1), #1e293b 42%, #0f766e 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
}

.auth-shell {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 32px 60px rgba(2, 6, 23, 0.45);
  animation: rise-in 0.65s ease-out both;
}

.auth-shell--framed {
  max-width: none;
}

.auth-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 28%),
    radial-gradient(circle at right 10%, rgba(15, 118, 110, 0.14), transparent 32%),
    linear-gradient(180deg, #f6efe6 0%, #f3eadf 28%, #f8f4ee 100%);
}

.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  inset: auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.42;
  pointer-events: none;
}

.auth-page::before {
  top: 72px;
  left: -120px;
  background: radial-gradient(circle, rgba(217, 123, 102, 0.34), transparent 70%);
}

.auth-page::after {
  right: -140px;
  bottom: 140px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.22), transparent 68%);
}

.auth-page__backdrop {
  position: relative;
  padding: 72px 0 96px;
}

.auth-page__container {
  position: relative;
  z-index: 1;
}

.auth-page__eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.auth-brand__content {
  position: relative;
  z-index: 1;
}

.auth-brand__footer {
  position: relative;
  z-index: 1;
}

.auth-switcher {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(248, 250, 252, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.auth-switcher__link {
  padding: 10px 18px;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.8);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-switcher__link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-switcher__link.is-active {
  background: rgba(248, 250, 252, 0.18);
  color: #ffffff;
}

.auth-highlights {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-highlights li {
  position: relative;
  padding-left: 28px;
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.65;
}

.auth-highlights li::before {
  content: '\f058';
  position: absolute;
  left: 0;
  top: 1px;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #a7f3d0;
}

.auth-brand {
  padding: 46px 40px;
  position: relative;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.78), rgba(15, 118, 110, 0.74));
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand::before,
.auth-brand::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.auth-brand::before {
  width: 260px;
  height: 260px;
  top: -105px;
  right: -80px;
}

.auth-brand::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -55px;
}

.brand-badge {
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(248, 250, 252, 0.2);
}

.auth-brand h1 {
  z-index: 1;
  margin: 16px 0 10px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.auth-brand p {
  z-index: 1;
  margin: 0;
  max-width: 36ch;
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.7;
}

.auth-note {
  z-index: 1;
  margin-top: 26px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.95);
}

.auth-panel {
  padding: 34px;
  background: var(--card);
  backdrop-filter: blur(7px);
}

.auth-panel h2 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 30px;
}

.auth-panel .sub {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.flash {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.flash.error {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: var(--danger-text);
}

.flash.success {
  background: var(--success-bg);
  border-color: #a7f3d0;
  color: var(--success-text);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.field {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 15px;
}

.field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.field-error {
  margin-top: 6px;
  display: block;
  font-size: 13px;
  color: #b91c1c;
}

.submit-btn {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), #0f766e 55%, #0891b2);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  margin-top: 6px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
}

.switch-link {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.switch-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.switch-link a:hover {
  text-decoration: underline;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .auth-page__backdrop {
    padding: 56px 0 72px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .auth-brand {
    padding: 30px 26px;
  }

  .auth-brand p {
    max-width: none;
  }
}

@media (max-width: 560px) {
<<<<<<< HEAD
  .auth-page {
    padding: 14px;
=======
  .auth-page__backdrop {
    padding: 36px 0 56px;
>>>>>>> 7195977 (cập nhật giao diện + chức năng quét CCCD (Khuê))
  }

  body.auth-body {
    padding: 14px;
  }

  .auth-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .auth-switcher__link {
    flex: 1;
    text-align: center;
  }

  .auth-panel {
    padding: 22px 18px;
  }

  .auth-panel h2 {
    font-size: 24px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
