/**
 * Shell đăng nhập portal CMS / Staff — tông màu Nguồn lực QHR (#19275b, emerald).
 */
:root {
  --portal-primary: #19275b;
  --portal-primary-mid: #006e25;
  --portal-accent: #059669;
  --portal-surface: #f9fafb;
}

.portal-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--portal-surface);
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.portal-auth__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, var(--portal-primary) 0%, #0f3d4a 45%, var(--portal-accent) 100%);
  color: #fff;
}

@media (min-width: 1024px) {
  .portal-auth {
    flex-direction: row;
  }
  .portal-auth__hero {
    width: 42%;
    max-width: 520px;
    padding: 3rem 2.5rem;
  }
  .portal-auth__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
  }
}

.portal-auth__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px;
}

.portal-auth__logo--lg {
  width: 72px;
  height: 72px;
}

.portal-auth__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

.portal-auth__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 0;
}

.portal-auth__sub {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
}

.portal-auth__card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(25, 39, 91, 0.12);
  border: 1px solid #e5e7eb;
  padding: 1.75rem 1.5rem;
}

@media (min-width: 1024px) {
  .portal-auth__card {
    padding: 2.25rem 2rem;
  }
}

.portal-auth__card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--portal-primary);
  margin: 0 0 0.25rem;
}

.portal-auth__links {
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.portal-auth__links a {
  color: var(--portal-accent);
  font-weight: 600;
  text-decoration: none;
}

.portal-auth__links a:hover {
  text-decoration: underline;
}

.portal-auth--staff .portal-auth__hero {
  background: linear-gradient(145deg, #065f46 0%, var(--portal-accent) 55%, #34d399 100%);
}

.portal-auth--cms .portal-auth__hero {
  background: linear-gradient(145deg, var(--portal-primary) 0%, #1e3a5f 50%, var(--portal-primary-mid) 100%);
}
