:root {
  --bg: #06090f;
  --surface: #101826;
  --surface-2: #151f31;
  --text: #ecf1f7;
  --muted: #aeb8c6;
  --accent: #319eff;
  --accent-strong: #7ac8ff;
  --line: #264970;
  --accent-red: #ff365f;
  --danger: #ff7b7b;
  --ok: #8fd9a8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #050a13 0%, #04070f 62%, #03050a 100%);
  min-height: 100vh;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 0%, rgba(49, 158, 255, 0.16), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(255, 54, 95, 0.14), transparent 40%),
    linear-gradient(transparent 96%, rgba(49, 158, 255, 0.1) 100%);
  background-size:
    auto,
    auto,
    100% 34px;
}

.page {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  margin-top: 0.9rem;
  padding: 0.68rem 0.78rem;
  position: relative;
  z-index: 40;
  border: 1px solid rgba(69, 108, 158, 0.6);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 22, 0.96),
    rgba(4, 9, 18, 0.96)
  );
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 28px -24px rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.74rem;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 0;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 54, 95, 0.92),
    rgba(49, 158, 255, 0.92)
  );
  opacity: 0.78;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  text-decoration: none;
  color: inherit;
  padding: 0.28rem 0.4rem;
  border-radius: 7px;
  border: 1px solid rgba(65, 103, 151, 0.46);
  background: rgba(7, 14, 26, 0.86);
}

.brand-mark {
  width: 2.42rem;
  height: 1.54rem;
  border-radius: 4px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  font-size: 0;
  color: transparent;
  line-height: 0;
  background: url("/Pictures/ODY%20Leo.webp") center / contain no-repeat;
  box-shadow: none;
}

.brand-text {
  font-size: 0.88rem;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: #deebfb;
}

.header-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-btn {
  border: 1px solid rgba(68, 121, 183, 0.7);
  background: rgba(9, 16, 29, 0.96);
  color: #dfeaff;
  border-radius: 9px;
  padding: 0.56rem 0.8rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.015em;
  cursor: pointer;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}

.auth-btn:hover {
  border-color: rgba(72, 167, 255, 0.9);
  background: rgba(11, 20, 36, 0.98);
  transform: none;
}

.auth-btn-alt {
  border-color: rgba(255, 54, 95, 0.5);
  background: rgba(24, 8, 15, 0.7);
  color: #ffc8d4;
  font-size: 0.77rem;
}

.nav-group {
  position: relative;
  min-width: 146px;
}

.nav-group summary {
  list-style: none;
  color: #d9e9fd;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.52rem 0.76rem;
  border-radius: 8px;
  border: 1px solid rgba(67, 107, 158, 0.62);
  background: rgba(8, 15, 27, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "\25BE";
  color: var(--accent);
  font-size: 0.65rem;
  transform: translateY(-1px);
}

.nav-group summary:hover {
  border-color: rgba(82, 179, 255, 0.9);
  background: rgba(10, 19, 33, 0.98);
  box-shadow: inset 0 -2px 0 rgba(255, 54, 95, 0.62);
}

.nav-group[open] summary {
  border-color: rgba(255, 54, 95, 0.72);
  background: rgba(12, 20, 35, 0.98);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.34rem);
  left: 0;
  min-width: max(100%, 210px);
  border-radius: 8px;
  border: 1px solid rgba(68, 111, 164, 0.74);
  background: rgba(5, 11, 21, 0.98);
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(7px);
  overflow: hidden;
  z-index: 80;
}

.dropdown-panel a {
  display: block;
  color: #bccfe8;
  text-decoration: none;
  font-size: 0.84rem;
  padding: 0.56rem 0.74rem;
  border-bottom: 1px solid rgba(35, 55, 84, 0.86);
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.dropdown-panel a:last-child {
  border-bottom: none;
}

.dropdown-panel a:hover {
  color: var(--text);
  background: linear-gradient(
    90deg,
    rgba(49, 158, 255, 0.16),
    rgba(255, 54, 95, 0.12)
  );
}

.hero {
  padding: 3.2rem 0 1.2rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.8rem);
  text-transform: uppercase;
}

.hero p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

.form-shell {
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 24, 0.95),
    rgba(5, 10, 18, 0.96)
  );
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.wide {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  color: #d8e0eb;
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: rgba(17, 25, 38, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.66rem 0.75rem;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(72, 167, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(49, 158, 255, 0.18);
}

.helper {
  color: var(--muted);
  font-size: 0.85rem;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkline input {
  margin-top: 0.17rem;
}

.actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  text-decoration: none;
  color: #f3f8ff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.72rem 1.1rem;
  border: 1px solid rgba(84, 134, 194, 0.7);
  background: linear-gradient(
    130deg,
    rgba(49, 158, 255, 0.9),
    rgba(255, 54, 95, 0.88)
  );
  box-shadow: 0 12px 20px -16px rgba(49, 158, 255, 0.62);
}

.btn-alt {
  color: #d8e8ff;
  background: rgba(8, 15, 27, 0.95);
  border: 1px solid rgba(68, 111, 164, 0.74);
  box-shadow: none;
}

.feedback {
  margin-top: 0.95rem;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
}

.feedback.error {
  color: var(--danger);
  border: 1px solid rgba(255, 123, 123, 0.4);
  background: rgba(255, 123, 123, 0.08);
}

.feedback.success {
  color: var(--ok);
  border: 1px solid rgba(143, 217, 168, 0.4);
  background: rgba(143, 217, 168, 0.08);
}

.hidden {
  display: none;
}

.footer {
  color: #92a0b2;
  font-size: 0.86rem;
  padding: 0 0 2rem;
}

/* Compatibility override for stale cached roster CSS versions. */
.form-shell {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#roster-content.roster-content {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-height: none !important;
  height: auto !important;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: stretch;
  }

  .header-auth {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .nav-group {
    width: 100%;
    min-width: 0;
  }

  .dropdown-panel {
    position: static;
    margin-top: 0.35rem;
  }
}
