:root{
  --overlay:rgba(0,0,0,.66);
  --cardTop:#1a1a1a;
  --cardBottom:#121212;
  --line:rgba(255,255,255,.08);
  --text:#fff;
  --muted:rgba(255,255,255,.60);
  --muted2:rgba(255,255,255,.46);
  --inputBg:#0e0e0e;
  --inputBorder:rgba(255,255,255,.14);
  --danger:#ff6b6b;
  --dangerBorder:rgba(255,107,107,.72);
  --dangerGlow:rgba(255,107,107,.12);
  --topbarWhite:#fff;
  --topbarDark:#242424;
  --ghostHover:rgba(255,255,255,.06);
  --ok:#50ffa0;
  --h:68px;
  --padX:clamp(14px,2.2vw,26px);
}
*{box-sizing:border-box;}
html,body{min-height:100%;}
body{
  margin:0;
  font-family:'Montserrat',ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,Arial,sans-serif;
  color:var(--text);
  background:#000;
}
button,input,select,a{
  font-family:'Montserrat',ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,Arial,sans-serif;
}
.pageBackground{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(var(--overlay),var(--overlay)),
    url('https://cdn.midwesternroleplay.com/images/background-1.png') center / cover no-repeat;
}
a{color:inherit;text-decoration:none;}
.loginWrap{
  min-height:calc(100vh - var(--h));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px var(--padX) 54px;
}
.authCard{
  width:100%;
  max-width:560px;
  border-radius:22px;
  overflow:visible;
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--cardTop),var(--cardBottom));
  backdrop-filter:blur(6px);
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}
.authForm{padding:26px 24px 24px;}
.authHeader{margin-bottom:18px;}
.authTitle{
  margin:0 0 3px;
  font-size:24px;
  font-weight:900;
  line-height:1.1;
  text-align:left;
}
.authSub{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  text-align:left;
  font-weight:600;
}
.authSub strong{color:#fff;font-weight:900;}
.formRow{margin-top:12px;}
.formRow:first-child{margin-top:0;}
.formLabel{
  display:block;
  margin:0 0 5px;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
input,.nativeSelect{
  width:100%;
  height:42px;
  padding:0 12px;
  border-radius:8px;
  border:1px solid var(--inputBorder);
  background:var(--inputBg);
  color:#fff;
  font-size:13px;
  font-weight:650;
  outline:none;
  transition:border-color .15s ease,background .15s ease;
}
input::placeholder{color:rgba(255,255,255,.35);}
input:focus,.nativeSelect:focus{
  border-color:rgba(255,255,255,.36);
  box-shadow:none;
}
input.isInvalid,.nativeSelect.isInvalid,.cselectBtn.isInvalid{
  border-color:var(--dangerBorder)!important;
  box-shadow:0 0 0 3px var(--dangerGlow)!important;
}
.fieldErr{
  display:none;
  margin-top:7px;
  color:var(--danger);
  font-size:11px;
  line-height:1.35;
  font-weight:750;
}
.fieldErr.show{display:block;}
.hintRow{
  margin-top:7px;
  color:var(--muted2);
  font-size:11px;
  line-height:1.35;
  font-weight:650;
}
.row3{
  display:grid;
  grid-template-columns:1.2fr .8fr 1fr;
  gap:10px;
}
.inputWithIcon{position:relative;}
.inputWithIcon input{padding-right:42px;}
.toggleBtn{
  position:absolute;
  right:7px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  color:rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.toggleBtn:hover{border-color:rgba(255,255,255,.26);}
.toggleBtn .icoShow{display:none;}
.toggleBtn.isShown .icoHide{display:none;}
.toggleBtn.isShown .icoShow{display:block;}
.meterWrap{
  margin-top:9px;
  display:flex;
  align-items:center;
  gap:10px;
}
.meterBars{
  flex:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
}
.meterBar{
  height:8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  overflow:hidden;
}
.meterBarFill{
  width:0;
  height:100%;
  border-radius:999px;
  background:transparent;
}
.meterLabel{
  min-width:84px;
  color:rgba(255,255,255,.70);
  font-size:11px;
  font-weight:900;
  text-align:right;
}
.cselect{position:relative;width:100%;}
.cselectBtn{
  width:100%;
  height:42px;
  padding:0 12px;
  border-radius:8px;
  background:var(--inputBg);
  border:1px solid var(--inputBorder);
  color:#fff;
  text-align:left;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  font-weight:650;
  outline:none;
}
.cselectBtn:focus{
  border-color:rgba(255,255,255,.36);
  box-shadow:none;
}
.cselectValue{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cselectChevron{
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid rgba(255,255,255,.70);
  flex:0 0 auto;
}
.cselectMenu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  background:rgba(14,14,14,.98);
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  box-shadow:0 22px 70px rgba(0,0,0,.70);
  padding:6px;
  max-height:220px;
  overflow:auto;
  display:none;
  z-index:50;
  backdrop-filter:blur(10px);
}
.cselect.open .cselectMenu{display:block;}
.cselectOpt{
  padding:10px;
  border-radius:8px;
  cursor:pointer;
  color:rgba(255,255,255,.88);
  font-size:13px;
  font-weight:650;
  user-select:none;
}
.cselectOpt:hover{background:var(--ghostHover);}
.cselectOpt[aria-selected="true"]{background:rgba(255,255,255,.10);}
.cselectOptMuted{color:rgba(255,255,255,.45);}
.nativeSelect{display:none;}
.turnstileRow{margin-top:14px;}
.legalText{
  margin-top:12px;
  color:rgba(255,255,255,.54);
  font-size:10.5px;
  line-height:1.45;
  font-weight:600;
}
.legalText a{
  color:rgba(255,255,255,.88);
  text-decoration:underline;
  text-underline-offset:2px;
}
.primaryBtn,.secondaryBtn{
  position:relative;
  width:100%;
  height:44px;
  margin-top:16px;
  border-radius:8px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.005em;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  overflow:hidden;
  transition:transform .16s ease,filter .16s ease,opacity .16s ease;
}
.primaryBtn{
  border:1px solid var(--topbarWhite);
  background:var(--topbarWhite);
  color:var(--topbarDark);
}
.secondaryBtn{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
}
.primaryBtn:hover:not(:disabled),.secondaryBtn:hover:not(:disabled){
  transform:translateY(-1px);
  filter:brightness(.96);
}
.primaryBtn:disabled,.secondaryBtn:disabled{
  opacity:.46;
  cursor:not-allowed;
}
.primaryBtn.isLoading:disabled{
  opacity:1;
  pointer-events:none;
}
.formButtonLabel{
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:1;
  transform:translateY(0);
  transition:opacity .22s ease,transform .22s ease;
}
.primaryBtn.isLoading .formButtonLabel{
  opacity:0;
  transform:translateY(-6px);
}
.formButtonLoader{
  position:absolute;
  width:24px;
  height:24px;
  border:3px solid rgba(0,0,0,.16);
  border-top-color:#111;
  border-radius:999px;
  opacity:0;
  transform:scale(.8);
  transition:opacity .22s ease,transform .22s ease;
}
.primaryBtn.isLoading .formButtonLoader{
  opacity:1;
  transform:scale(1);
  animation:formButtonSpinLoader .75s linear infinite;
}
@keyframes formButtonSpinLoader{
  to{transform:scale(1) rotate(360deg);}
}
.registerRow{
  margin-top:15px;
  width:100%;
  min-height:36px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:rgba(255,255,255,.60);
  background:transparent;
  font-size:12px;
  font-weight:750;
  letter-spacing:.005em;
  text-align:center;
}
.signupLink{color:#fff;font-weight:900;}
body.verifyLocked{
  overflow:hidden;
}
body.verifyLocked #topbar,
body.verifyLocked .topHeader{
  z-index:1000!important;
}
.verifyPanel{
  position:fixed;
  top:var(--verificationTopbarOffset, 70px);
  left:0;
  right:0;
  bottom:0;
  z-index:999;
  display:none;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  min-height:0;
  padding:18px;
  background:rgba(0,0,0,.48);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  isolation:isolate;
  overflow:auto;
}
.verifyPanel.isShown{display:flex;}
.verifyBox{
  position:relative;
  width:min(430px,calc(100vw - 28px));
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(24,24,24,.98),rgba(14,14,14,.98));
  box-shadow:0 24px 90px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.045);
  padding:20px 18px 16px;
  text-align:center;
}
.verifyCloseBtn{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  border-radius:8px;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.70);
  font-size:21px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
}
.verifyCloseBtn:hover{
  color:#ffb1b1;
  background:rgba(255,107,107,.08);
}
.verifyBox .authHeader{
  margin:0 34px 13px;
}
.verifyBox .authTitle{
  font-size:19px;
  line-height:1.15;
  text-align:center;
}
.verifyBox .authSub{
  font-size:12px;
  line-height:1.45;
  text-align:center;
}
.codeBoxes{
  display:grid;
  grid-template-columns:repeat(6,56px);
  justify-content:center;
  gap:7px;
  margin-top:11px;
}
.codeBox{
  width:56px;
  height:56px;
  padding:0;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.075);
  background:rgb(56,56,56);
  color:#fff;
  text-align:center;
  font-size:25px;
  font-weight:900;
  outline:none;
  caret-color:#fff;
  box-shadow:none;
  transition:background .12s ease,border-color .12s ease,opacity .12s ease;
}
.codeBox:focus{
  border-color:rgba(255,255,255,.18);
  background:rgb(62,62,62);
  box-shadow:none;
  transform:none;
}
.codeBoxes.isChecking .codeBox{
  opacity:.72;
}
.codeBox.isInvalid{
  background:rgba(132,40,40,.96)!important;
  border-color:rgba(255,107,107,.42)!important;
  box-shadow:none!important;
}
.verifyMeta{
  margin-top:9px;
  color:var(--muted2);
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}
.verifyActions{
  display:block;
}
.verifyActions .secondaryBtn{
  width:100%;
  height:34px;
  margin-top:12px;
  border-radius:8px;
  font-size:12px;
}
.verifyDeleteNote{
  margin-top:9px;
  color:rgba(255,255,255,.43);
  font-size:10.5px;
  line-height:1.35;
  font-weight:650;
}
.successBox{
  display:none;
  margin-top:14px;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(80,255,160,.22);
  background:rgba(80,255,160,.08);
  color:rgba(255,255,255,.88);
  font-size:12px;
  line-height:1.45;
  font-weight:700;
}
.successBox.isShown{display:block;}
.toastWrap{
  position:fixed;
  right:18px;
  top:calc(var(--h) + 18px);
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  width:min(420px, calc(100vw - 36px));
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(14,14,14,.94);
  box-shadow:0 22px 70px rgba(0,0,0,.70);
  backdrop-filter:blur(10px);
  padding:12px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  transform:translateX(16px);
  opacity:0;
  transition:transform .18s ease, opacity .18s ease;
}
.toast.show{transform:translateX(0);opacity:1;}
.toastIcon{
  width:18px;
  height:18px;
  border-radius:999px;
  margin-top:2px;
  flex:0 0 auto;
}
.toastIcon.ok{background:rgba(80,255,160,.18);border:1px solid rgba(80,255,160,.28);}
.toastIcon.bad{background:rgba(255,80,80,.18);border:1px solid rgba(255,80,80,.35);}
.toastTitle{font-weight:900;font-size:13px;line-height:1.2;}
.toastMsg{margin-top:2px;color:rgba(255,255,255,.72);font-size:13px;line-height:1.35;font-weight:600;}
.toastClose{
  margin-left:auto;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.65);
  font-size:16px;
  line-height:1;
  cursor:pointer;
  padding:2px 6px;
  outline:0;
}
.toastClose:hover{color:rgba(255,255,255,.92);}
@media(max-width:900px){
  .loginWrap{
    min-height:calc(100svh - var(--h));
    align-items:flex-start;
    justify-content:center;
    padding:28px 14px 34px;
  }
  .authCard{max-width:500px;border-radius:18px;}
  .authForm{padding:24px 20px 22px;}
  input,.nativeSelect,.cselectBtn{height:44px;font-size:14px;}
  .nativeSelect{display:block;}
  .cselect{display:none;}
  .row3{grid-template-columns:1fr;}
  .primaryBtn,.secondaryBtn{height:45px;}
  .meterLabel{text-align:left;min-width:auto;}
}
@media(max-width:480px){
  .loginWrap{align-items:flex-start;padding-top:18px;padding-left:12px;padding-right:12px;}
  .authCard{max-width:none;border-radius:16px;}
  .authForm{padding:22px 18px 20px;}
  .authTitle{font-size:22px;}
  .authSub{font-size:12px;line-height:1.45;}
  .legalText{font-size:10px;}
  .toastWrap{right:12px;top:calc(var(--h) + 12px);}
  .toast{width:calc(100vw - 24px);}
  .verifyPanel{padding:14px;}
  .verifyBox{padding:18px 14px 15px;border-radius:14px;}
  .codeBoxes{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;}
  .codeBox{width:100%;height:52px;font-size:21px;}
}
