body.auth-page {
  min-height: 100vh;
}

.auth-header .nav-shell {
  border-radius: 22px;
}

.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-main {
  padding: 144px 0 72px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.auth-intro,
.auth-card {
  padding: 28px;
  border-radius: 26px;
}

.auth-intro h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 12px;
}

.auth-highlights {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.auth-highlight {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-highlight strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 4px;
}

.auth-highlight span {
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.active {
  color: var(--text);
  border-color: rgba(34, 147, 238, 0.25);
  background: linear-gradient(135deg, rgba(11, 91, 215, 0.24), rgba(34, 147, 238, 0.1));
}

.auth-panel {
  display: none;
}

.auth-panel[hidden],
.auth-form[hidden],
.two-factor-setup[hidden] {
  display: none !important;
}

.auth-panel.active {
  display: block;
}

.auth-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-panel p {
  margin-bottom: 18px;
}

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

.auth-form label {
  color: #dbeafe;
  font-weight: 700;
  font-size: 0.93rem;
}

.auth-form input {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.password-field input {
  width: 100%;
}

.password-toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  border-color: rgba(34, 147, 238, 0.4);
}

.auth-form input::placeholder {
  color: #9fb6ce;
}

.auth-form input:focus-visible {
  border-color: rgba(34, 147, 238, 0.36);
}

.auth-form input[name="code"] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-link-btn {
  border: 0;
  background: none;
  color: #8fd8ff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 2px 0;
  width: fit-content;
  cursor: pointer;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  color: #dff4ff;
  text-decoration: underline;
}

.auth-inline-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.two-factor-setup {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(157, 248, 200, 0.08);
  border: 1px solid rgba(157, 248, 200, 0.18);
}

.two-factor-setup strong {
  font-family: 'Poppins', sans-serif;
}

.two-factor-setup span {
  color: var(--muted);
}

.two-factor-setup code {
  display: block;
  overflow-wrap: anywhere;
  color: #d9ffe9;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.auth-status {
  min-height: 26px;
  margin-top: 14px;
  font-weight: 700;
}

.auth-status.success {
  color: #9df8c8;
}

.auth-status.error {
  color: #ffb4b4;
}

.auth-status.banned,
.auth-status.suspended {
  color: #ff3b3b;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-note {
  font-size: 0.92rem;
  margin-top: 6px;
}

.client-placeholder {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 120px 0 70px;
}

.client-card {
  width: min(760px, 100%);
  padding: 34px;
  border-radius: 28px;
}

.client-card h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin-bottom: 12px;
}

.client-card .actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.client-checklist {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.client-checklist li {
  list-style: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
}

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

@media (max-width: 760px) {
  body.auth-page:not(.client-dashboard-page) .auth-top-actions {
    display: none;
  }

  .client-dashboard-page .auth-header .nav-shell {
    flex-wrap: wrap;
    row-gap: 8px;
    border-radius: 20px;
    padding: 12px;
  }

  .client-dashboard-page .auth-top-actions {
    display: flex;
    width: 100%;
    flex: 1 1 100%;
    gap: 8px;
    align-items: stretch;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .client-dashboard-page .auth-top-actions .btn {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
    padding: 9px 10px;
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .client-dashboard-page .auth-top-actions .btn.btn-primary {
    flex-basis: calc(33.333% - 8px);
  }

  .auth-main {
    padding-top: 126px;
  }

  .auth-intro,
  .auth-card,
  .client-card {
    padding: 22px;
  }

  .client-card .actions {
    flex-direction: column;
  }
}
