:root {
  --bg: #07111f;
  --panel: rgba(8, 20, 37, 0.8);
  --panel-strong: rgba(5, 15, 29, 0.92);
  --border: rgba(141, 174, 216, 0.22);
  --text: #f5f7fb;
  --muted: #9fb2cb;
  --accent: #72f2c9;
  --accent-strong: #30c79a;
  --accent-deep: #0c5f4a;
  --danger: #ff8e8e;
  --success: #8df6c3;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(55, 114, 255, 0.2), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(114, 242, 201, 0.18), transparent 28%),
    linear-gradient(180deg, #08111d 0%, #071522 56%, #06111b 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

body {
  min-height: 100vh;
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-a {
  top: 8%;
  left: -6%;
  width: 280px;
  height: 280px;
  background: rgba(63, 130, 255, 0.24);
}

.ambient-b {
  right: -10%;
  bottom: 12%;
  width: 360px;
  height: 360px;
  background: rgba(114, 242, 201, 0.16);
}

.hidden {
  display: none !important;
}

.session-gate,
.app {
  position: relative;
  z-index: 1;
}

.session-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gate-card,
.hero-card,
.info-card,
.form-card {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gate-card {
  width: min(100%, 480px);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(114, 242, 201, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.04em;
}

.gate-card h1,
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.gate-card p,
.form-header p,
.hero-copy p,
.requirements p,
.hero-badge span,
.info-list,
.feedback,
.meta-pill,
.field span {
  color: var(--muted);
}

.gate-form,
.register-form {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(151, 183, 220, 0.18);
  border-radius: var(--radius-md);
  background: rgba(5, 14, 26, 0.74);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(114, 242, 201, 0.58);
  box-shadow: 0 0 0 4px rgba(114, 242, 201, 0.1);
  transform: translateY(-1px);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.primary-button {
  appearance: none;
  border: 0;
  border-radius: 16px;
  min-height: 54px;
  padding: 0 20px;
  background:
    linear-gradient(135deg, rgba(114, 242, 201, 1) 0%, rgba(48, 199, 154, 1) 100%);
  color: #04291f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 18px 40px rgba(48, 199, 154, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.feedback {
  min-height: 20px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}

.feedback.error {
  color: var(--danger);
}

.feedback.success {
  color: var(--success);
}

.app {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  border-radius: 34px;
  padding: 34px;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(10, 25, 43, 0.18), rgba(3, 11, 21, 0.08));
  opacity: 0.8;
  pointer-events: none;
}

.hero-copy,
.hero-brand {
  position: relative;
  z-index: 1;
}

.club-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(210, 227, 255, 0.14);
  background: rgba(7, 18, 31, 0.62);
  padding: 0 14px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-brand {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 19, 32, 0.1), rgba(8, 19, 32, 0.24)),
    var(--hero-cover-media, linear-gradient(135deg, rgba(27, 67, 112, 0.55), rgba(14, 39, 65, 0.72)));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(4, 10, 19, 0.04) 0%, rgba(4, 10, 19, 0.42) 65%, rgba(4, 10, 19, 0.76) 100%);
  pointer-events: none;
}

.club-logo {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(4, 11, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.hero-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  width: min(100%, 300px);
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(4, 13, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.hero-badge strong {
  font-size: 1rem;
}

.content-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
}

.info-card,
.form-card {
  border-radius: 28px;
  padding: 28px;
}

.info-card {
  display: grid;
  gap: 18px;
}

.info-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.sport-panel,
.requirements {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(3, 12, 24, 0.68);
  border: 1px solid rgba(114, 242, 201, 0.12);
}

.sport-panel span,
.requirements span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 800;
}

.sport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 52px;
  align-items: center;
}

.sport-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(114, 242, 201, 0.12);
  color: #dffdf3;
  border: 1px solid rgba(114, 242, 201, 0.18);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-header {
  margin-bottom: 22px;
}

.form-header h2 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.grid {
  display: grid;
  gap: 16px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-row .feedback {
  flex: 1;
}

@media (max-width: 980px) {
  .app {
    width: min(100%, calc(100% - 24px));
  }

  .hero-card,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    min-height: 250px;
    align-items: flex-start;
  }

  .club-logo {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .gate-card,
  .hero-card,
  .info-card,
  .form-card {
    padding: 22px;
    border-radius: 24px;
  }

  .two-columns,
  .status-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .primary-button {
    width: 100%;
  }
}
