/* shell/login.css — Variant C centered-card login styles
 *
 * Self-contained: all values are literal hex / px to avoid token drift.
 * Does NOT import css/base.css or depend on CSS custom properties defined
 * outside this file.  The MFA overlay CSS lives in css/layout.css and is
 * intentionally NOT duplicated here.
 */

/* ── Page wrapper ─────────────────────────────────────────────────────────── */

.vC-page {
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(79, 70, 229, 0.05), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

/* ── Stack (limits width, stacks card + foot vertically) ─────────────────── */

.vC-stack {
  width: 100%;
  max-width: 408px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.vC-card {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 26px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px -10px rgba(15, 23, 42, 0.08);
}

/* ── Brand row ────────────────────────────────────────────────────────────── */

.vC-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}

.vC-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.vC-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.vC-wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.vC-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.field select,
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.field-help {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* ── Role section ─────────────────────────────────────────────────────────── */

.role-section {
  margin-top: 22px;
}

.role-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: inherit;
}

.role-tile:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(79, 70, 229, 0.4);
}

.role-tile.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.06), rgba(79, 70, 229, 0.02));
}

.role-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--hover);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.role-tile.selected .role-tile-icon {
  background: var(--accent);
  color: #ffffff;
}

.role-tile-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.role-tile-sub {
  font-size: 12px;
  color: var(--ink-2);
}

/* ── Sub-roles panel ──────────────────────────────────────────────────────── */

.sub-roles {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px dashed var(--ink-5);
  border-radius: 10px;
}

.sub-roles.open {
  display: block;
}

.sub-roles-label {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 10px;
  font-weight: 500;
}

.sub-roles-label strong {
  color: var(--ink);
}

.sub-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-role-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
  font-family: inherit;
}

.sub-role-btn:hover {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.04);
}

.sub-role-btn .icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--hover);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex-shrink: 0;
}

/* ── Bottom tagline (inside card) ────────────────────────────────────────── */

.vC-bottom-tagline {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ── Outer foot (below card) ─────────────────────────────────────────────── */

.vC-foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

.vC-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.vC-foot a:hover {
  text-decoration: underline;
}
