[hidden] { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 78% 18%, rgba(99, 102, 241, 0.16), transparent 30%),
    radial-gradient(circle at 16% 86%, rgba(14, 116, 144, 0.14), transparent 34%),
    #0b1020;
}

.auth-card {
  width: min(520px, 100%);
  padding: 36px;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, #181d33 0%, #151a2d 100%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.auth-card .eyebrow {
  margin: 0;
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.auth-card h1 {
  max-width: 12ch;
  margin: 10px 0 14px;
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  text-shadow: none;
}

.auth-card > p:not(.eyebrow):not(.auth-message) {
  max-width: 38ch;
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
}

.auth-card form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #e2e8f0;
  font-size: .95rem;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #475569;
  border-radius: 11px;
  background: #0f172a;
  color: #f8fafc;
  caret-color: #93c5fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-card input:hover {
  border-color: #64748b;
}

.auth-card input:focus-visible {
  outline: 3px solid rgba(147, 197, 253, 0.50);
  outline-offset: 2px;
  border-color: #93c5fd;
}

.auth-card button {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  color: #ffffff;
  background: #3f46c8;
  border: 1px solid #6366f1;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(63, 70, 200, 0.22);
}

.auth-card button:hover {
  background: #343ab0;
}

.auth-card button:active {
  transform: translateY(1px);
}

.auth-card button:focus-visible {
  outline: 3px solid rgba(191, 219, 254, 0.78);
  outline-offset: 3px;
}

.auth-message {
  margin: 16px 0 0;
  padding: 11px 13px;
  color: #e2e8f0;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}

.auth-message[data-kind="error"] {
  color: #ffe4e6;
  background: rgba(196, 60, 60, 0.22);
  border: 1px solid rgba(255, 118, 118, 0.38);
}

.workspace-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 13px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
}
.user-identity-text { display: grid; line-height: 1.2; }
.user-identity-text small { color: #aeb7d2; }
.user-identity[data-role="admin"] { border-color: rgba(165,216,255,0.42); }
.user-identity button { white-space: nowrap; }

@media (max-width: 760px) {
  .workspace-header-row { flex-direction: column; }
  .user-identity { width: 100%; box-sizing: border-box; justify-content: space-between; }
  .auth-shell { padding: 20px 14px; }
  .auth-card { padding: 26px 22px; border-radius: 18px; }
  .auth-card h1 { max-width: 11ch; font-size: clamp(2rem, 12vw, 2.65rem); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card button:active { transform: none; }
}
