.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f4f7f9 0%, #eef3f6 100%);
}

.auth-main {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 48px 7% 70px;
  align-items: start;
}

.auth-card,
.auth-side {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 34px;
}

.auth-card h1 {
  margin: 0 0 12px;
  font: 700 clamp(34px, 4vw, 48px)/1.05 'Playfair Display', serif;
  color: var(--blue);
  letter-spacing: -1px;
}

.auth-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 460px;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.role-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 12px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.role-tab.active {
  border-color: var(--yellow);
  color: var(--blue);
  background: #fff8e8;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6d7b86;
  letter-spacing: .3px;
}

.auth-form label span.req::after {
  content: ' *';
  color: #b42318;
}

.auth-form input {
  border: 1px solid var(--line);
  padding: 13px 14px;
  font: 600 14px Montserrat, Arial, sans-serif;
  color: var(--ink);
  outline: 0;
  width: 100%;
}

.auth-form input:focus {
  border-color: var(--yellow);
}

.auth-submit {
  margin-top: 6px;
  border: 0;
  background: var(--yellow);
  color: var(--deep);
  font: 700 14px Montserrat, Arial, sans-serif;
  padding: 15px 18px;
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(.96);
}

.auth-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.auth-demos {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-demos p {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--blue);
}

.auth-demos ul {
  margin: 0;
  padding-left: 18px;
}

.auth-side h2 {
  margin: 0 0 24px;
  font: 700 30px/1.15 'Playfair Display', serif;
  color: var(--blue);
}

.auth-side article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.auth-side article:last-child {
  border-bottom: 0;
}

.auth-side span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 8px;
}

.auth-side h3 {
  margin: 0 0 8px;
  font: 700 20px 'Playfair Display', serif;
  color: var(--blue);
}

.auth-side p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.portal-shell {
  min-height: 100vh;
  background: #f4f7f9;
}

.portal-top {
  background: var(--deep);
  color: #fff;
  padding: 14px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.portal-brand img {
  width: 100px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.portal-brand strong {
  display: block;
  font-size: 14px;
}

.portal-brand span {
  font-size: 11px;
  color: #9cb0c2;
}

.portal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-user {
  font-size: 12px;
  color: #c7d7e5;
  margin-right: 8px;
}

.portal-main {
  padding: 34px 4% 70px;
  display: grid;
  gap: 22px;
}

.portal-hero,
.portal-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
}

.portal-hero h1 {
  margin: 0 0 10px;
  font: 700 clamp(30px, 4vw, 44px)/1.1 'Playfair Display', serif;
  color: var(--blue);
}

.portal-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 640px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portal-stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}

.portal-stat small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #82909a;
  margin-bottom: 10px;
}

.portal-stat strong {
  display: block;
  font: 700 28px 'Playfair Display', serif;
  color: var(--blue);
}

.portal-stat p {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.portal-list {
  display: grid;
  gap: 12px;
}

.portal-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.portal-item:last-child {
  border-bottom: 0;
}

.portal-item h3 {
  margin: 0 0 4px;
  font: 700 18px 'Playfair Display', serif;
  color: var(--blue);
}

.portal-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.portal-badge {
  display: inline-block;
  padding: 6px 10px;
  background: #fff8e8;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-portal {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.btn-portal.yellow {
  background: var(--yellow);
  color: var(--deep);
}

.btn-portal.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

.btn-portal.line {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.auth-main-single {
  grid-template-columns: 1.1fr .9fr;
}

@media (max-width: 980px) {
  .auth-main,
  .auth-main-single,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .role-tabs {
    grid-template-columns: 1fr;
  }
}
