/* Sign-in: always the deep-water scene, whatever the theme. The page is one view: the pitch on the left,
   a pane of glass with the sign-in on the right, rings spreading behind both. */
body.login { margin: 0; min-height: 100vh; color: #e6f1f8; background: #041423; overflow-x: hidden; }
body.login::before { background:
    radial-gradient(60vmax 60vmax at 26% 40%, rgba(30,136,193,.55), transparent 62%),
    radial-gradient(46vmax 46vmax at 86% 82%, rgba(6,86,152,.65), transparent 64%),
    linear-gradient(170deg, #0c3150, #041423 70%); }
body.login::after { background:
    radial-gradient(30vmax 30vmax at 74% 12%, rgba(56,191,236,.30), transparent 60%),
    radial-gradient(24vmax 24vmax at 12% 88%, rgba(56,191,236,.22), transparent 62%); }

.sea { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rings { position: absolute; left: -8%; top: 50%; width: min(980px, 82vw); height: min(980px, 82vw); transform: translateY(-50%); }
.ring { transform-origin: 400px 400px; opacity: 0; animation: sound 9s cubic-bezier(.2,.6,.3,1) infinite; }
.ring.r2 { animation-delay: 2.25s; } .ring.r3 { animation-delay: 4.5s; } .ring.r4 { animation-delay: 6.75s; }
@keyframes sound { 0% { transform: scale(.55); opacity: 0; } 12% { opacity: .75; } 100% { transform: scale(3.1); opacity: 0; } }
.motes circle { animation: rise 14s linear infinite; opacity: 0; }
.motes circle:nth-child(2n) { animation-duration: 19s; animation-delay: 3s; }
.motes circle:nth-child(3n) { animation-duration: 23s; animation-delay: 7s; }
.motes circle:nth-child(5n) { animation-delay: 11s; }
@keyframes rise { 0% { transform: translateY(40px); opacity: 0; } 15% { opacity: .7; } 100% { transform: translateY(-620px); opacity: 0; } }
.swell { position: absolute; left: 0; bottom: 0; width: 200%; height: 26vh; }
.swell path { fill: rgba(56,191,236,.07); }
.swell .w1 { animation: tide 26s linear infinite; }
.swell .w2 { fill: rgba(143,220,247,.06); animation: tide 38s linear infinite reverse; }
@keyframes tide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stage { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 460px);
  gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(24px, 5vw, 72px); max-width: 1320px; margin: 0 auto; }
.pitch .mark { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.8px; color: #fff; }
.pitch .mark img { width: 56px; height: 56px; filter: drop-shadow(0 6px 22px rgba(56,191,236,.6)); }
.pitch h1 { font-family: var(--display); font-size: clamp(38px, 5.4vw, 74px); line-height: .98; letter-spacing: -0.035em; font-weight: 700;
  color: #fff; margin: clamp(28px, 5vh, 56px) 0 22px; max-width: 11ch; text-wrap: balance; }
.pitch p { font-size: 17px; line-height: 1.6; color: #b9d4e6; max-width: 46ch; margin: 0; }
.pitch .by { display: inline-flex; flex-direction: column; gap: 8px; margin-top: clamp(28px, 6vh, 64px); color: #8fb2cb; font-size: 12.5px; text-decoration: none; }
.pitch .by img { height: 30px; width: auto; }

.panel { padding: 30px 28px 28px; border-radius: 28px; color: #e6f1f8;
  background: linear-gradient(150deg, rgba(160,215,245,.20), rgba(120,190,235,.07));
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(190,230,255,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(0,0,0,.25), 0 40px 80px -40px rgba(0,0,0,.85); }
.panel h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.5px; margin: 0 0 6px; color: #fff; }
.panel .sub { margin: 0 0 20px; color: #b9d4e6; font-size: 14px; line-height: 1.5; }
.panel label { color: #d6e6f2; }
.panel input { max-width: none; background: rgba(4,20,35,.45); border: 1px solid rgba(190,230,255,.24); color: #fff; padding: 11px 12px; }
.panel input::placeholder { color: #7fa3bd; }
.panel input:focus, .panel button:focus-visible, .panel a:focus-visible { outline: 2px solid #8fdcf7; outline-offset: 2px; }
.panel .btn { width: 100%; margin-top: 18px; padding: 12px 14px; text-align: center; color: #fff; background: rgba(255,255,255,.10); border-color: rgba(190,230,255,.28); }
.panel .btn-primary { background: linear-gradient(160deg, #5fd0f5, #38bfec 50%, #1e88c1); color: #04233a; font-weight: 600; }
.panel .ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.panel details.local { margin-top: 20px; font-size: 13px; }
.panel details.local summary { cursor: pointer; color: #9fc2da; text-align: center; }
.panel .flash { margin-bottom: 16px; }

.roles { display: grid; gap: 10px; }
.roles label { margin-top: 0; }
.roles input { margin-bottom: 8px; }
.role { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(190,230,255,.22); background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16); transition: transform .16s, background .16s, border-color .16s; }
.role:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); border-color: rgba(143,220,247,.65); }
.role:active { transform: scale(.99); }
.role .av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  color: #04233a; background: linear-gradient(140deg, #8fdcf7, #1e88c1); box-shadow: 0 6px 16px -6px rgba(56,191,236,.8); }
.role .txt { display: grid; gap: 3px; min-width: 0; }
.role b { font-size: 15.5px; color: #fff; font-weight: 650; }
.role .txt span { font-size: 13px; line-height: 1.45; color: #b9d4e6; }
.role i { font-style: normal; font-size: 12px; color: #8fb2cb; }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; align-content: start; gap: 28px; }
  .pitch h1 { margin: 22px 0 14px; max-width: none; }
  .pitch .by { margin-top: 20px; }
  .rings { left: -30%; width: 150vw; height: 150vw; top: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; opacity: .28; }
  .ring.r2 { transform: scale(1.5); } .ring.r3 { transform: scale(2.1); opacity: .16; } .ring.r4 { transform: scale(2.7); opacity: .08; }
  .motes circle, .swell path { animation: none; }
  .role { transition: none; }
}
