:root {
  --bg: #05070a;
  --panel: #11161b;
  --ink: #f6efe5;
  --muted: #b4aa9f;
  --gold: #c8924f;
  --gold-2: #e0b878;
  --cyan: #7be3df;
  --violet: #b47cff;
  --red: #c45c4e;
  --line: rgba(224, 184, 120, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(123, 227, 223, 0.12), transparent 25rem),
    radial-gradient(circle at 88% 35%, rgba(180, 124, 255, 0.1), transparent 28rem),
    var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr minmax(22rem, 31rem) 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.auth-kicker {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-info h1 {
  max-width: 34rem;
  margin: 0 0 1.4rem;
  font-size: 2.1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.flow-list {
  display: grid;
  gap: 1.1rem;
}

.flow-list article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
}

.flow-list span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--cyan);
  border: 1px solid rgba(123, 227, 223, 0.5);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
}

.flow-list h2,
.role-preview h2 {
  margin: 0;
  color: var(--gold-2);
  font-size: 1rem;
  text-transform: uppercase;
}

.flow-list p,
.security-note p,
.role-preview p,
.auth-card p {
  color: var(--muted);
  line-height: 1.6;
}

.security-note,
.role-preview article,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 23, 28, 0.96), rgba(8, 11, 14, 0.96));
}

.security-note {
  margin-top: 1.6rem;
  padding: 1rem;
}

.security-note strong {
  color: var(--gold-2);
  text-transform: uppercase;
}

.auth-card {
  padding: 2rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin-bottom: 1.4rem;
  text-align: center;
  text-transform: uppercase;
}

.auth-brand span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--gold-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.auth-brand strong {
  font-family: Georgia, serif;
  font-size: 1.55rem;
}

.auth-brand small {
  color: var(--muted);
  font-size: 0.68rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tabs button,
.auth-form button {
  min-height: 2.8rem;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-tabs button {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.auth-tabs .is-active,
.auth-form button {
  color: #100b06;
  border: 0;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form.is-hidden {
  display: none;
}

.auth-form h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.auth-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form input {
  min-height: 3rem;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.75rem 0.9rem;
  outline: 0;
}

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

.demo-users {
  margin: 0;
  font-size: 0.78rem;
}

.auth-message {
  min-height: 1.2rem;
  margin: 1rem 0 0;
  color: var(--cyan);
  font-weight: 800;
}

.auth-message[data-type="error"] {
  color: var(--red);
}

.role-preview {
  display: grid;
  gap: 1rem;
}

.role-preview article {
  padding: 1rem;
}

.role-preview code {
  color: var(--cyan);
}

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