:root {
  color: #efeff0;
  background:
    radial-gradient(circle at top left, rgba(118, 188, 231, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(221, 165, 57, 0.12), transparent 30%),
    linear-gradient(180deg, #090c3c 0%, #0d0e1e 48%, #090c3c 100%);
  font-family: Lato, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #efeff0;
  background:
    radial-gradient(circle at top left, rgba(118, 188, 231, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(221, 165, 57, 0.12), transparent 30%),
    linear-gradient(180deg, #090c3c 0%, #0d0e1e 48%, #090c3c 100%);
}

input,
button {
  font: inherit;
}

.signup-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.signup-shell--split {
  width: min(100%, 1600px);
  display: grid;
  grid-template-columns: minmax(0, min(760px, 50%)) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.signup-pane {
  min-width: 0;
}

.signup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 15px 22px;
  border-radius: 18px;
  background: #dda539;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.back-link:hover {
  background: #e8af43;
}

.outline-button--left {
  margin-left: auto;
}

.signup-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(21, 52, 177, 0.18) 0%, rgba(9, 12, 60, 0.94) 100%);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  padding: 24px;
}

.dashboard-pane {
  min-width: 0;
}

.dashboard-pane__toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.dashboard-frame-wrap {
  min-height: calc(100vh - 120px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(21, 52, 177, 0.18) 0%, rgba(9, 12, 60, 0.94) 100%);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.dashboard-frame-wrap--compact {
  min-height: calc(100vh - 120px);
}

.dashboard-frame {
  width: 100%;
  min-height: calc(100vh - 120px);
  border: 0;
  background: #090c3c;
}

.signup-shell--split .dashboard-frame {
  width: 128%;
  min-height: calc((100vh - 120px) / 0.78);
  transform: scale(0.78);
  transform-origin: top left;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: #76bce7;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #efeff0;
}

.signup-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}

.signup-brand__logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.signup-copy {
  margin: 0 0 24px;
  color: rgba(239, 239, 240, 0.72);
}

.signup-copy--compact {
  margin-bottom: 0;
}

.signup-form {
  display: grid;
  gap: 16px;
}

.signup-reset-link {
  color: #76bce7;
  text-decoration: none;
  font-size: 0.92rem;
}

.signup-reset-link:hover {
  color: #9ad6fb;
  text-decoration: underline;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-field {
  display: grid;
  gap: 8px;
}

.signup-field--full {
  grid-column: 1 / -1;
}

.signup-field span {
  color: #dda539;
  font-size: 0.92rem;
  font-weight: 700;
}

.signup-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #efeff0;
  outline: none;
}

.signup-field input:focus {
  border-color: rgba(118, 188, 231, 0.58);
  box-shadow: 0 0 0 3px rgba(118, 188, 231, 0.14);
}

.signup-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: #dda539;
  color: #242837;
  font-weight: 800;
  cursor: pointer;
}

.signup-button:hover {
  background: #e8af43;
}

.signup-button:disabled {
  background: rgba(221, 165, 57, 0.42);
  color: rgba(36, 40, 55, 0.72);
  cursor: not-allowed;
}

.signup-button:disabled:hover {
  background: rgba(221, 165, 57, 0.42);
}

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(239, 239, 240, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.signup-consent input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.signup-consent a {
  color: #76bce7;
}

.signup-consent a:hover {
  color: #9ad6fb;
}

.signup-consent--optional {
  font-size: 0.92rem;
  color: rgba(239, 239, 240, 0.72);
}

.outline-button {
  border: 1px solid rgba(118, 188, 231, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #efeff0;
  font-weight: 700;
  cursor: pointer;
}

.outline-button:hover {
  border-color: rgba(118, 188, 231, 0.58);
  background: rgba(118, 188, 231, 0.12);
}

.score-check-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 18px;
}

.matches-stack {
  display: grid;
  gap: 14px;
}

.match-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 18px;
}

.match-card__top,
.match-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.match-card__top {
  margin-bottom: 16px;
}

.match-card__eyebrow {
  margin: 0 0 6px;
  color: #dda539;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.match-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.match-card__group {
  margin: 6px 0 0;
  color: rgba(239, 239, 240, 0.68);
}

.match-card__meta {
  display: grid;
  gap: 4px;
  text-align: right;
  color: rgba(239, 239, 240, 0.7);
  font-size: 0.95rem;
}

.match-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.match-card__team {
  display: grid;
  gap: 10px;
}

.match-card__team span {
  font-weight: 700;
  color: #efeff0;
}

.match-card__team input {
  width: 100%;
  max-width: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #efeff0;
  outline: none;
}

.match-card__team--away {
  justify-items: end;
  text-align: right;
}

.match-card__team input:focus {
  border-color: rgba(118, 188, 231, 0.58);
  box-shadow: 0 0 0 3px rgba(118, 188, 231, 0.14);
}

.match-card__versus {
  text-align: center;
  color: #dda539;
  font-size: 1.2rem;
  font-weight: 800;
}

.match-card__footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(239, 239, 240, 0.62);
  font-size: 0.92rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 5, 24, 0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-card {
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(21, 52, 177, 0.18) 0%, rgba(9, 12, 60, 0.97) 100%);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  padding: 24px;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #efeff0;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #ff9f9f;
  font-size: 0.92rem;
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: #76bce7;
  font-size: 0.92rem;
}

.results-kpis,
.phase-summary__grid,
.results-list__grid {
  display: grid;
  gap: 14px;
}

.results-kpis,
.phase-summary__grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.results-kpis {
  margin-bottom: 18px;
}

.summary-card,
.result-game-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 18px;
}

.summary-card--highlight {
  background: linear-gradient(180deg, rgba(221, 165, 57, 0.16) 0%, rgba(255, 255, 255, 0.035) 100%);
}

.summary-card__label {
  display: block;
  color: rgba(239, 239, 240, 0.68);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.summary-card__value {
  display: block;
  color: #dda539;
  font-size: 1.8rem;
}

.phase-summary,
.results-list {
  margin-top: 18px;
}

.section-header {
  margin-bottom: 12px;
}

.empty-copy {
  margin: 0;
  color: rgba(239, 239, 240, 0.72);
}

.result-game-card__top,
.result-game-card__score,
.result-game-card__points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-game-card__top {
  margin-bottom: 14px;
}

.result-game-card__score {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  font-weight: 700;
}

.result-game-card__score strong {
  color: #dda539;
}

.result-game-card__points {
  margin-top: 14px;
  color: rgba(239, 239, 240, 0.72);
}

@media (max-width: 720px) {
  .signup-shell {
    padding-top: 20px;
  }

  .signup-shell--split {
    grid-template-columns: 1fr;
  }

  .signup-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-card {
    padding: 18px;
    border-radius: 18px;
  }

  .signup-grid,
  .score-check-card,
  .match-card__body,
  .match-card__top,
  .match-card__footer,
  .result-game-card__top,
  .result-game-card__score,
  .result-game-card__points {
    grid-template-columns: 1fr;
    display: grid;
  }

  .match-card__meta,
  .match-card__team--away {
    text-align: left;
    justify-items: start;
  }

  .match-card__versus {
    text-align: left;
  }

  .modal-card {
    padding: 18px;
    border-radius: 18px;
  }

  .dashboard-frame-wrap,
  .dashboard-frame {
    min-height: 70vh;
  }
}

@media (max-width: 767px) {
  .outline-button--left {
    display: none;
  }
}
