:root {
  --ink: #14202b;
  --muted: #5c6b7a;
  --line: #e6ebf2;
  --paper: #f4f6f8;
  --gold: #c6a15b;
  --navy: #14243a;
  --danger: #9c3b32;
  font-family: "Segoe UI", Candara, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: var(--navy); }
h1 { font-size: 1.6rem; margin: 0 0 16px; }
h2 { font-size: 1.05rem; margin: 28px 0 10px; }
button, .button, input, select {
  font: inherit;
}
button, .button {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
aside {
  background: var(--navy);
  color: #fff;
  padding: 22px 16px;
}
aside a { color: #fff; text-decoration: none; display: block; padding: 8px 10px; border-radius: 8px; }
aside a.on, aside a:hover { background: rgba(255,255,255,.08); }
.brand { font-weight: 700; letter-spacing: .08em; margin: 0 0 8px; }
.who { margin: 0 0 18px; font-size: 14px; }
.who span { display: block; color: var(--gold); text-transform: capitalize; }
.linkish { background: transparent; color: #fff; padding: 8px 10px; margin-top: 16px; }
main { padding: 28px; }
.solo { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }

.auth-body {
  min-height: 100vh;
  background: #0d1b2d;
}
.auth-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 28, 48, 0.72) 0%, rgba(12, 28, 48, 0.28) 38%, rgba(20, 40, 62, 0.22) 100%),
    radial-gradient(ellipse at 70% 18%, #9ec4df 0%, #6f97b5 42%, #3f5f7d 100%);
  z-index: 0;
}
.auth-bg::before {
  content: "";
  position: absolute;
  inset: auto 0 0 18%;
  height: 46%;
  background:
    linear-gradient(#2b4258, #2b4258) 8% 40%/18px 48% no-repeat,
    linear-gradient(#334a60, #334a60) 14% 18%/28px 72% no-repeat,
    linear-gradient(#2b4258, #2b4258) 22% 30%/22px 58% no-repeat,
    linear-gradient(#3a536b, #3a536b) 30% 8%/40px 82% no-repeat,
    linear-gradient(#2f465c, #2f465c) 40% 26%/26px 62% no-repeat,
    linear-gradient(#354d64, #354d64) 48% 12%/48px 78% no-repeat,
    linear-gradient(#2b4258, #2b4258) 58% 34%/20px 52% no-repeat,
    linear-gradient(#3a536b, #3a536b) 66% 16%/34px 70% no-repeat,
    linear-gradient(#2f465c, #2f465c) 76% 28%/24px 58% no-repeat,
    linear-gradient(#354d64, #354d64) 86% 10%/42px 76% no-repeat,
    linear-gradient(#2b4258, #2b4258) 96% 36%/18px 48% no-repeat;
  opacity: 0.55;
}
.auth-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(180, 205, 220, 0.05), rgba(210, 222, 232, 0.55));
}
.auth-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #10284a 0%, #0c1f38 100%);
  color: #fff;
  padding: 56px 34px;
  display: flex;
  align-items: center;
  clip-path: ellipse(100% 120% at 0% 50%);
  box-shadow: 18px 0 40px rgba(8, 16, 28, 0.25);
}
.auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 320px;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.auth-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(198, 161, 91, 0.08);
}
.auth-ico svg { width: 20px; height: 20px; }
.auth-card {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(460px, calc(100% - 48px));
  margin: 40px 24px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 34px 34px 18px;
  box-shadow: 0 28px 60px rgba(8, 18, 32, 0.28);
  overflow: hidden;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.auth-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
}
.auth-logo svg { width: 48px; height: 48px; }
.auth-brand strong {
  display: block;
  color: #16345f;
  font-size: 1.2rem;
  line-height: 1.15;
}
.auth-brand em {
  display: inline-block;
  font-style: normal;
  color: #16345f;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  margin-top: 2px;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #14202b;
}
.auth-lede {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}
.auth-form { display: grid; gap: 10px; }
.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: #3d4d5f;
}
.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7deea;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  min-height: 48px;
}
.auth-field:focus-within {
  border-color: #16345f;
  box-shadow: 0 0 0 3px rgba(22, 52, 95, 0.12);
}
.auth-field-ico {
  color: #8a97a8;
  display: grid;
  place-items: center;
}
.auth-field-ico svg { width: 18px; height: 18px; }
.auth-field input {
  border: 0;
  outline: none;
  width: 100%;
  padding: 12px 0;
  background: transparent;
}
.auth-submit {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  background: #16345f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}
.auth-submit svg { width: 18px; height: 18px; }
.auth-submit:hover { background: #10284a; }
.auth-email-chip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f6fa;
  color: #16345f;
  font-size: 14px;
}
.auth-alt, .auth-debug {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-alt a { color: #16345f; }
.auth-skyline {
  margin: 22px -34px -18px;
  line-height: 0;
}
.auth-skyline svg {
  display: block;
  width: 100%;
  height: 72px;
}
@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-panel {
    clip-path: none;
    padding: 24px 20px 8px;
    order: 2;
  }
  .auth-features {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: none;
  }
  .auth-features li { font-size: 13px; }
  .auth-card {
    order: 1;
    margin: 28px 16px;
    width: calc(100% - 32px);
    padding: 28px 22px 14px;
  }
  .auth-skyline { margin-left: -22px; margin-right: -22px; }
}
label { display: grid; gap: 6px; font-size: 14px; }
input, select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.grid { display: grid; gap: 12px; max-width: 720px; }
.row, .inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.inline { justify-content: flex-start; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats article { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; padding: 14px; }
.stats span { color: var(--muted); font-size: 13px; }
.stats strong { display: block; font-size: 1.8rem; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.table-wrap { overflow-x: auto; background: #fff; }
.roster select { width: 100%; margin-bottom: 4px; }
.flash { padding: 10px 12px; border-radius: 8px; background: #e7f6ee; }
.flash.bad { background: #fdeceb; color: var(--danger); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 0; }
.check { display: flex; gap: 8px; align-items: center; }
fieldset { border: 1px solid var(--line); border-radius: 10px; }
.actions { display: flex; gap: 6px; }
.actions form { display: flex; gap: 6px; }
.subnav { display: flex; gap: 14px; }
.pill { background: var(--navy); color: #fff; border-radius: 99px; padding: 2px 8px; font-size: 12px; }
.clip { max-width: 360px; overflow: hidden; color: var(--muted); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
