:root {
  --bg: #0c0610;
  --surface: #1c1024;
  --surface-2: #281632;
  --orange: #ffad00;
  --cream: #f8f1e8;
  --muted: #c1b3c5;
  --line: rgba(248, 241, 232, .14);
  --danger: #ff8b8b;
  color-scheme: dark;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
html.is-embed {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html.is-embed::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 13% 17%, rgba(255, 173, 0, .13), transparent 28rem),
    radial-gradient(circle at 86% 76%, rgba(153, 61, 210, .16), transparent 32rem),
    var(--bg);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.login-brand {
  position: fixed;
  z-index: 2;
  top: 25px;
  left: clamp(20px, 4vw, 64px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.login-brand span {
  display: inline-grid;
  min-height: 43px;
  padding: 2px 10px 3px;
  place-items: center;
  color: var(--orange);
  background: #120818;
  border: 2px solid var(--orange);
  border-radius: 10px;
  font-family: "Arial Black", "Segoe UI Black", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -.09em;
}
.login-brand b { font-size: 1.35rem; letter-spacing: -.05em; text-shadow:0 2px 0 #5b2b00aa,0 4px 9px #0008; }

.login-brand {
  width: 202px;
  height: 48px;
  background: url('/assets/juhu-party-logo-compact.png') center / contain no-repeat;
}
.login-brand > * { visibility: hidden; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  align-items: center;
  gap: clamp(40px, 8vw, 140px);
  width: min(1280px, calc(100% - 48px));
  min-height: 100vh;
  margin: auto;
  padding: 110px 0 54px;
}

.login-story { max-width: 650px; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.login-story h1 {
  margin: 0;
  font-family: "Arial Black", "Segoe UI Black", sans-serif;
  font-size: clamp(3.5rem, 7.2vw, 7.3rem);
  line-height: .88;
  letter-spacing: -.075em;
}
.login-story h1 em { color: var(--orange); font-style: normal; }
.login-story > p:not(.eyebrow) {
  max-width: 590px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.login-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.login-benefits div { min-height: 112px; padding: 20px; background: rgba(12, 6, 16, .92); }
.login-benefits span { display: block; margin-bottom: 12px; color: var(--orange); font-size: .72rem; font-weight: 900; }
.login-benefits strong { font-size: .9rem; line-height: 1.35; }

.auth-card {
  padding: clamp(24px, 4vw, 46px);
  background: linear-gradient(145deg, rgba(40, 22, 50, .96), rgba(20, 10, 27, .98));
  border: 1px solid rgba(248, 241, 232, .16);
  border-radius: 30px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .4);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  background: rgba(6, 3, 9, .65);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.auth-tabs button {
  min-height: 46px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
}
.auth-tabs button.is-active { color: #130916; background: var(--orange); }

.role-choice { margin-top: 25px; }
.role-choice > p { margin: 0 0 10px; color: var(--muted); font-size: .8rem; }
.role-choice > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-choice button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  padding: 14px;
  color: var(--cream);
  text-align: left;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.role-choice button > span { grid-row: 1 / 3; align-self: center; color: var(--orange); font-size: 1.2rem; }
.role-choice button strong { font-size: .84rem; }
.role-choice button small { color: var(--muted); font-size: .68rem; line-height: 1.3; }
.role-choice button.is-active { background: rgba(255,173,0,.08); border-color: var(--orange); }

.provider-services {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.provider-services legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: .8rem;
  font-weight: 800;
}
.provider-services legend small {
  margin-left: 5px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 500;
}
.provider-services > div {
  display: flex;
  max-height: 186px;
  gap: 7px;
  overflow: auto;
  padding: 2px 3px 8px 1px;
  flex-wrap: wrap;
  scrollbar-color: rgba(255,173,0,.42) transparent;
  scrollbar-width: thin;
}
.provider-services label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.provider-services label:hover,
.provider-services label.is-selected {
  color: #160a18;
  background: var(--orange);
  border-color: var(--orange);
}
.provider-services input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.provider-services > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .64rem;
}

.auth-card h2 { margin: 30px 0 4px; font-size: 1.75rem; letter-spacing: -.04em; }
.auth-lead { margin: 0 0 22px; color: var(--muted); font-size: .9rem; }
.social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  color: #251829;
  background: #fff;
  border-radius: 13px;
  font-weight: 750;
}
.social-login svg { width: 21px; height: 21px; }
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: rgba(193,179,197,.7);
  font-size: .72rem;
}
.divider::before, .divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }

.auth-form { display: grid; gap: 15px; }
.auth-form label:not(.terms) { display: grid; gap: 7px; }
.auth-form label > span { font-size: .77rem; font-weight: 750; }
.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--cream);
  background: rgba(5, 2, 8, .52);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
}
.auth-form input:not([type="checkbox"]):focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,173,0,.1); }
.auth-form label small { color: var(--muted); font-size: .68rem; }
.terms { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.terms input { margin-top: 3px; accent-color: var(--orange); }
.terms a { color: var(--orange); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-message { min-height: 20px; margin: 0; color: var(--danger); font-size: .78rem; }
.form-message.is-success { color: #8fe0ac; }
.forgot-password { width: max-content; margin-top: -6px; color: var(--orange); font-size: .72rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 19px;
  color: #160a19;
  background: var(--orange);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 850;
}
.submit-button:disabled { cursor: wait; opacity: .65; }
.submit-button b { font-size: 1.2rem; }
.two-factor-login { padding-top: 10px; }
.two-factor-login h2 { margin: 10px 0 0; }
.two-factor-login > p:not(.form-message) { margin: 0 0 8px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.two-factor-login-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #160a19;
  background: var(--orange);
  border: 3px solid #120818;
  border-radius: 19px;
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
  font-family: "Arial Black", sans-serif;
  font-size: 2rem;
}
.two-factor-back {
  min-height: 46px;
  color: var(--cream);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}
.auth-note { margin: 22px 0 0; color: rgba(193,179,197,.72); font-size: .7rem; line-height: 1.5; text-align: center; }

[hidden] { display: none !important; }

.is-embed {
  min-height: 100%;
  background: #120918;
}
.is-embed .login-brand,
.is-embed .login-story { display: none; }
.is-embed .login-shell {
  display: block;
  width: 100%;
  min-height: 100%;
  padding: 0;
}
.is-embed .auth-card {
  min-height: 100%;
  padding: 25px 30px 32px;
  background: linear-gradient(145deg, rgba(40, 22, 50, .96), rgba(20, 10, 27, .98));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; width: min(620px, calc(100% - 32px)); padding-top: 108px; }
  .login-story { text-align: center; }
  .login-story h1 { font-size: clamp(3.2rem, 12vw, 6rem); }
  .login-story > p:not(.eyebrow) { margin-inline: auto; }
}
@media (max-width: 580px) {
  .login-brand { top: 17px; left: 17px; }
  .login-brand span { min-height: 38px; font-size: 1.2rem; }
  .login-brand b { font-size: 1.15rem; }
  .login-shell { width: min(100% - 20px, 520px); padding: 92px 0 20px; }
  .login-story { display: none; }
  .auth-card { padding: 20px 16px; border-radius: 22px; }
  .is-embed .auth-card { border-radius: 0; }
  .role-choice > div { grid-template-columns: 1fr; }
}
html,body{scrollbar-width:none!important;-ms-overflow-style:none}html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{width:0!important;height:0!important}
