.login-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(2, 13, 31, .94) 0%, rgba(2, 13, 31, .74) 45%, rgba(2, 13, 31, .48) 100%),
    url("assets/rydr-landing-hero-wide.png") center / cover fixed;
}

.login-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login-header .brand img { width: 54px; }
.login-back {
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 600;
}

.login-shell {
  width: min(1240px, calc(100% - 48px));
  min-height: 100svh;
  margin-inline: auto;
  padding: 130px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  align-items: center;
  gap: 90px;
}

.login-intro { min-width: 0; max-width: 610px; }
.login-intro h1 {
  margin-bottom: 28px;
  font-size: clamp(64px, 8vw, 112px);
  line-height: .88;
}
.login-intro > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.member-types { max-width: 520px; margin-top: 52px; display: grid; gap: 12px; }
.member-types article {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(8, 25, 45, .36);
  backdrop-filter: blur(12px);
}
.member-types article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: rgba(71,125,255,.72);
  font-size: 12px;
  font-weight: 700;
}
.member-types article > span svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.member-types strong, .member-types small { display: block; }
.member-types strong { margin-bottom: 3px; color: white; font-size: 14px; }
.member-types small { color: var(--muted); font-size: 12px; }

.login-panel {
  min-width: 0;
  max-width: 100%;
  padding: 38px;
  border: 1px solid rgba(166, 197, 239, .3);
  border-radius: 30px;
  background: rgba(7, 24, 48, .78);
  box-shadow: 0 34px 100px rgba(0, 7, 22, .48), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(26px) saturate(135%);
}
.login-panel-heading > p {
  margin-bottom: 10px;
  color: var(--blue-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.login-panel-heading h2 { margin-bottom: 10px; color: white; font-size: 36px; line-height: 1.05; }
.login-panel-heading > span { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }

.role-switch {
  margin: 28px 0;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}
.role-switch button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.role-switch button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.role-switch button.active { color: white; background: var(--blue); box-shadow: 0 10px 25px rgba(36, 89, 213, .3); }

.login-form { min-width: 0; display: grid; gap: 18px; }
.registration-name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 8px; }
.field > span:first-child, .field > label:first-child { color: rgba(255,255,255,.78); font-size: 12px; font-weight: 600; }
.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: white;
  background: rgba(255,255,255,.045);
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #8fa2c0 50%), linear-gradient(135deg, #8fa2c0 50%, transparent 50%); background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: #08192d; background: white; }
.field input::placeholder { color: var(--muted-soft); }
.field input:focus, .field select:focus { border-color: var(--blue-bright); background-color: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(71,125,255,.12); }
.field > small { margin-top: -2px; color: var(--muted-soft); font-size: 10px; line-height: 1.45; }
.club-search-field { position: relative; }
.club-search-results { position: absolute; z-index: 30; top: 78px; left: 0; right: 0; max-height: 230px; padding: 6px; overflow-y: auto; border: 1px solid rgba(166,197,239,.3); border-radius: 14px; background: #0d2342; box-shadow: 0 18px 45px rgba(0,7,22,.42); }
.club-search-result { width: 100%; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 10px; color: white; background: transparent; text-align: left; cursor: pointer; }
.club-search-result:hover, .club-search-result:focus { outline: none; background: rgba(71,125,255,.2); }
.club-search-result strong, .club-search-result small { display: block; }
.club-search-result strong { margin-bottom: 3px; font-size: 12px; }
.club-search-result small { color: var(--muted); font-size: 9px; }
.club-search-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.club-search-help.selected { color: #8ce0c4; }
.organization-logo-editor { padding: 14px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.organization-logo-editor.is-dragover { border-color: #8fb0ff; background: rgba(71,125,255,.14); box-shadow: 0 0 0 3px rgba(71,125,255,.14); }
.organization-logo-preview { position: relative; width: 168px; height: 168px; flex: 0 0 168px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; color: white; background: #0b356b; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.organization-logo-preview svg { width: 76px; height: 76px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.organization-logo-preview svg path[fill="currentColor"] { stroke: none; }
.organization-logo-preview.has-custom-logo { color: #0b356b; background: #fff; box-shadow: none; }
.organization-logo-preview.has-image-editor { border-color: transparent; border-radius: 0; cursor: grab; touch-action: none; background: #fff; box-shadow: none; }
.organization-logo-preview.has-image-editor:active { cursor: grabbing; }
.organization-logo-preview .organization-logo-image { width: 100%; height: 100%; padding: 0; display: block; object-fit: cover; }
.organization-logo-preview .profile-drag-image { position: absolute; top: 0; left: 0; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.organization-logo-preview .image-resize-outline { position: absolute; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(25, 31, 40, .82); }
.organization-logo-preview .image-resize-handle { position: absolute; z-index: 3; width: 14px; height: 14px; padding: 0; border: 1px solid #5d6269; border-radius: 1px; background: #fff; box-shadow: 0 1px 4px rgba(0,7,22,.3); transform: translate(-50%, -50%); touch-action: none; }
.organization-logo-preview .image-resize-handle-nw,
.organization-logo-preview .image-resize-handle-se { cursor: nwse-resize; }
.organization-logo-preview .image-resize-handle-ne,
.organization-logo-preview .image-resize-handle-sw { cursor: nesw-resize; }
.organization-logo-preview .image-resize-handle-n,
.organization-logo-preview .image-resize-handle-s { cursor: ns-resize; }
.organization-logo-preview .image-resize-handle-e,
.organization-logo-preview .image-resize-handle-w { cursor: ew-resize; }
.organization-logo-preview .image-resize-handle:focus-visible { outline: 3px solid #b9ccff; outline-offset: 2px; }
.organization-logo-controls { min-width: 0; flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.organization-logo-controls input { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; opacity: 0; pointer-events: none; }
.organization-logo-button, .organization-logo-controls button { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid rgba(166,197,239,.26); border-radius: 10px; color: white; background: rgba(255,255,255,.06); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.organization-logo-controls button { color: #b8c8df; }
.organization-logo-controls button:disabled { opacity: .42; cursor: default; }
.organization-logo-controls small { width: 100%; color: var(--muted-soft); font-size: 9px; line-height: 1.4; }
.organization-logo-adjustments { width: 100%; display: flex; justify-content: flex-end; align-items: end; gap: 8px; }
.organization-logo-adjustments.hidden { display: none; }
.organization-logo-adjustments label { min-width: 0; flex: 1; display: grid; gap: 5px; color: #b8c8df; font-size: 9px; font-weight: 700; }
.organization-logo-adjustments input[type="range"] { position: static !important; width: 100% !important; height: auto !important; opacity: 1; pointer-events: auto; accent-color: #6e97ff; cursor: pointer; }
.organization-logo-drag-hint { color: #8fb0ff !important; font-weight: 700; }
@media (max-width: 520px) {
  .organization-logo-editor { align-items: stretch; flex-direction: column; }
  .organization-logo-preview { width: min(180px, 70vw); height: min(180px, 70vw); flex-basis: auto; align-self: center; }
}
.password-field { position: relative; min-width: 0; display: block; }
.password-field input { padding-right: 86px; }
.password-field button {
  position: absolute;
  top: 50%;
  right: 13px;
  padding: 6px;
  border: 0;
  color: var(--blue-bright);
  background: transparent;
  transform: translateY(-50%);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.form-options label { display: flex; align-items: center; gap: 7px; }
.form-options input { accent-color: var(--blue); }
.form-options a, .login-help a, .login-help button { color: var(--blue-bright); }
.registration-legal { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.registration-legal a, .login-legal-nav a { color: #a9c2ff; text-underline-offset: 2px; }
.login-submit {
  min-height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--blue);
  border-radius: 14px;
  color: white;
  background: var(--blue);
  box-shadow: 0 16px 38px rgba(36,89,213,.3);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.login-submit:hover { background: #5b88ff; }
.login-submit span { font-size: 20px; }
.login-status { min-height: 20px; margin: -4px 0 0; color: #a7c1ff; font-size: 12px; line-height: 1.45; }
.email-verification { display: grid; justify-items: center; gap: 16px; text-align: center; }
.email-verification > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.email-verification > strong { max-width: 100%; overflow-wrap: anywhere; color: #fff; font-size: 16px; }
.email-verification-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(122,163,255,.35); border-radius: 22px; color: #a7c1ff; background: rgba(64,113,230,.14); }
.email-verification-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.email-verification-actions { width: 100%; display: grid; gap: 12px; margin-top: 4px; }
.email-verification-secondary, .email-verification-link { min-height: 44px; padding: 0 16px; border-radius: 12px; color: #c9d8ff; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.email-verification-secondary { border: 1px solid rgba(167,193,255,.28); }
.email-verification-secondary:hover { border-color: rgba(167,193,255,.65); background: rgba(255,255,255,.04); }
.email-verification-link { min-height: 34px; border: 0; color: var(--blue-bright); font-size: 13px; }
.email-verification .login-status { margin-top: 0; }
.login-help { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }
.login-help button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.login-legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.hidden { display: none !important; }

@media (max-width: 920px) {
  .login-page { background-position: 62% center; }
  .login-shell { grid-template-columns: 1fr; gap: 48px; padding-top: 145px; }
  .login-intro { max-width: 680px; }
  .member-types { grid-template-columns: 1fr 1fr; max-width: none; }
  .login-panel { width: min(560px, 100%); margin-inline: auto; }
}

@media (max-width: 620px) {
  .login-header { top: 12px; left: 15px; right: 15px; }
  .login-header .brand img { width: 48px; }
  .login-back { padding: 10px 13px; font-size: 12px; }
  .login-shell { width: calc(100% - 30px); padding: 110px 0 40px; gap: 34px; }
  .login-intro h1 { font-size: 58px; }
  .login-intro > p:not(.eyebrow) { font-size: 16px; }
  .member-types { margin-top: 30px; grid-template-columns: 1fr; }
  .login-panel { padding: 25px 20px; border-radius: 24px; }
  .login-panel-heading h2 { font-size: 31px; }
  .registration-name-fields { grid-template-columns: 1fr; }
  .form-options { align-items: flex-start; flex-direction: column; }
}
