/* ==========================================================================
   Sign-in screen
   ========================================================================== */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  background: var(--surface);
}

/* --- Left: form ---------------------------------------------------------- */
.auth__pane {
  display: flex;
  flex-direction: column;
  padding: var(--sp-8) var(--sp-10);
  min-width: 0;
}

.auth__brand { display: flex; align-items: center; gap: var(--sp-3); }
.auth__mark {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--gold);
  display: grid; place-items: center;
}
.auth__brand b { font-size: var(--fs-15); font-weight: 650; color: var(--ink); letter-spacing: -0.01em; display: block; line-height: 1.2; }
.auth__brand span { font-size: var(--fs-11); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }

.auth__form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 392px;
  width: 100%;
  padding: var(--sp-8) 0;
}
.auth__form h1 { font-size: var(--fs-24); letter-spacing: -0.022em; }
.auth__form > p { margin-top: 6px; font-size: var(--fs-13); color: var(--ink-muted); }

.auth__foot { font-size: var(--fs-11); color: var(--ink-faint); display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.auth__error {
  display: none;
  align-items: flex-start; gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--danger-border);
  border-radius: var(--r-md);
  background: var(--danger-tint);
  color: var(--danger);
  font-size: var(--fs-12);
  font-weight: 500;
}
.auth__error.is-shown { display: flex; }

/* --- Right: demo credentials -------------------------------------------- */
.auth__aside {
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-5);
  position: relative;
  overflow: hidden;
}
.auth__aside::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(560px 380px at 88% 8%, rgba(180,131,28,.16), transparent 62%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.28));
  pointer-events: none;
}
.auth__aside > * { position: relative; }

.auth__aside h2 { color: #fff; font-size: var(--fs-16); }
.auth__aside .eyebrow { color: var(--gold); }
.auth__aside > p { font-size: var(--fs-13); color: #99A3AF; max-width: 44ch; }

.rolecards { display: flex; flex-direction: column; gap: 8px; }
.rolecard {
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #262D36;
  border-radius: var(--r-md);
  background: #191F26;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.rolecard:hover { border-color: var(--gold); background: #1E252E; }
.rolecard__ico {
  width: 30px; height: 30px; flex: none;
  border-radius: var(--r-md);
  background: #232A33;
  color: var(--gold);
  display: grid; place-items: center;
}
.rolecard__t { flex: 1 1 auto; min-width: 0; }
.rolecard__t b { display: block; font-size: var(--fs-13); font-weight: 600; color: #F2F4F7; }
.rolecard__t span { display: block; font-size: var(--fs-11); color: #7C8794; margin-top: 1px; }
.rolecard__cred {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  color: #98A2B0;
  text-align: right;
  line-height: 1.35;
}
.rolecard__cred b { color: var(--gold); font-weight: 600; display: block; }

.auth__note {
  padding: 10px 12px;
  border: 1px solid #262D36;
  border-radius: var(--r-md);
  background: rgba(180,131,28,.08);
  font-size: var(--fs-11);
  color: #ABB4C0;
  line-height: 1.5;
}
.auth__note b { color: var(--gold); }

@media (max-width: 940px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__pane { padding: var(--sp-6); }
  .auth__form { padding: var(--sp-6) 0; max-width: none; }
  .auth__aside { padding: var(--sp-6); }
}
