body.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-topbar {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  background: rgba(26, 40, 68, 0.8);
  border-bottom: 1px solid rgba(55, 48, 163, 0.3);
  box-shadow: 0 4px 18px rgba(2, 8, 23, 0.22);
  backdrop-filter: blur(10px);
}

.auth-topbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-topbar-about {
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid var(--accent-light);
  border-radius: 12px;
  background: transparent;
  color: var(--accent-light);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.auth-topbar-about svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.auth-topbar-about:hover,
.auth-topbar-about:focus-visible {
  border-color: var(--accent-light);
  background: rgba(96, 165, 250, 0.1);
  color: var(--accent-light);
}

.auth-main {
  flex: 1;
  padding: 24px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 460px);
}

.auth-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(26, 40, 68, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.35);
}

.tabs {
  display: flex;
  gap: 10px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.tab-button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 700;
  box-shadow: none;
}

.tab-button.active {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  margin-bottom: 8px;
}

.tab-content p {
  margin-bottom: 18px;
  color: #94a3b8;
}

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

.field > label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-weight: 600;
}

.field > input,
.field > select,
.field > .password-control > input {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
}

.field > input,
.field > .password-control > input {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  box-shadow: none;
}

.field input::placeholder {
  color: #64748b;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  box-shadow: none;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  transform: translateY(-50%);
  background: rgba(96, 165, 250, 0.12);
  color: #e2e8f0;
  box-shadow: none;
}

.password-toggle:active {
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 21px;
  height: 21px;
}

.password-toggle .eye-slash {
  display: none;
}

.password-toggle[aria-pressed='true'] .eye-slash {
  display: block;
}

.field small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  line-height: 1.4;
}

.status {
  min-height: 1.3em;
  font-size: 0.95rem;
  color: #94a3b8;
}

.status.error {
  color: #fca5a5;
}

.status.success {
  color: #86efac;
}

@media (max-width: 640px) {
  .auth-topbar {
    padding: 12px;
  }

  .auth-main {
    padding: 12px;
  }

  .auth-panel {
    padding: 20px;
    border-radius: 18px;
  }
}
