/*
 * Auth — access panel.
 * Square card, single hairline border, mono labels, no glassmorphism.
 */

.auth-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Transparent overlay; the role-specific background is supplied separately. */
  background: transparent;
  z-index: 9000;
  padding: var(--s-5);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-0);
  padding: var(--s-6);
  position: relative;
}
/* Corner ticks — engineering-drawing brackets at the four corners. */
.auth-card::before,
.auth-card::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--ink);
}
.auth-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.auth-card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Auth header: 2-col flex — portrait left, identity stacked right. */
.auth-header {
  display: grid;
  /* 2 rows × 2 cols. Image spans both rows (col 1), name+title stack in col 2. */
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--s-4);
  row-gap: 2px;
  align-items: center;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.auth-profile-image {
  width: 72px; height: 72px;
  border-radius: var(--r-0);
  margin: 0;
  border: 1px solid var(--ink);
  object-fit: cover;
  grid-column: 1;
  grid-row: 1 / span 2;   /* image spans both rows */
  align-self: center;
}
.auth-header h1 {
  font-family: var(--font-mono);
  font-size: var(--t-20);   /* dropped from t-24 — fits column without wrapping */
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  line-height: 1.05;
  white-space: nowrap;       /* never wrap onto a second line */
}
.auth-header h1::after {
  content: '.';
  color: var(--mark);
}
.auth-header p {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-2);
  margin: 0;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.auth-body { display: grid; gap: var(--s-4); }

.divider {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-2);
  background: transparent;
  height: auto;
  margin: var(--s-2) 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider span { white-space: nowrap; }

.login-form .form-group { margin: 0; }
.login-form input {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.login-form .error-message {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  color: var(--mark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  min-height: 1em;
}

.auth-footer {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.auth-footer p { margin: 0; max-width: none; }
