/* Approved NoFee private-access screen.
   Loaded last so later product-theme experiments cannot flatten the original
   rings, mint route, glass card, circular close control, or auth typography. */
body[data-screen="login"] .app-header { display: none; }

body[data-screen="login"] .login-screen {
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #070a09;
}

body[data-screen="login"] .login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 51%, rgba(10,47,33,.2), transparent 42%),
    linear-gradient(120deg, #070a09, #0a110e 50%, #070a09);
  background-size: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-screen="login"] .login-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}

body[data-screen="login"] .login-ambient::before { content: none; }

body[data-screen="login"] .login-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border: 1px solid rgba(34,227,154,.12);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

body[data-screen="login"] .ring-one {
  width: min(72vw,930px);
  height: min(72vw,930px);
  box-shadow: 0 0 90px rgba(34,227,154,.065) inset;
  animation: none; /* a solid circle looks the same at every angle; rotating it only cost GPU time */
}

body[data-screen="login"] .ring-two {
  width: min(55vw,706px);
  height: min(55vw,706px);
  border-color: rgba(151,255,205,.09);
  border-style: dashed;
  animation: auth-orbit 25s linear infinite reverse;
}

body[data-screen="login"] .login-route {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: block;
  width: 1px;
  background: linear-gradient(transparent,rgba(34,227,154,.25),transparent);
  box-shadow: 0 0 14px rgba(34,227,154,.2);
}

body[data-screen="login"] .auth-stage {
  position: relative;
  z-index: 2;
  width: min(440px,calc(100vw - 48px));
}

body[data-screen="login"] .auth-brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 27px;
  color: var(--mint);
  font: 650 10px/1 var(--mono);
  letter-spacing: .045em;
  text-transform: none;
}

body[data-screen="login"] .auth-brandline svg {
  width: 23px;
  height: 23px;
  color: var(--mint);
}

body[data-screen="login"] .auth-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10,15,13,.74);
  box-shadow: 0 20px 80px rgba(0,0,0,.32);
  backdrop-filter: blur(22px);
}

body[data-screen="login"] .auth-panel {
  width: 100%;
  min-height: 446px;
  padding: 36px 37px 30px;
}

body[data-screen="login"] .auth-step {
  margin: 0 0 20px;
  color: var(--mint);
  font: 650 10px/1 var(--mono);
  letter-spacing: .045em;
}

body[data-screen="login"] .auth-panel h2 {
  margin: 0;
  color: #eaf7f0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.052em;
}

body[data-screen="login"] .auth-panel h2 em {
  color: transparent;
  -webkit-text-stroke: .75px rgba(141,255,204,.87);
  font-style: normal;
}

body[data-screen="login"] .auth-copy {
  margin: 18px 0 27px;
  color: #839188;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}

body[data-screen="login"] .auth-copy b { color: #c2d1c8; font: 10px var(--mono); }

body[data-screen="login"] .auth-input-shell {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255,255,255,.018);
  transition: border-color .18s,background .18s;
}

body[data-screen="login"] .auth-input-shell:focus-within {
  border-color: var(--mint);
  background: rgba(34,227,154,.03);
}

body[data-screen="login"] .auth-input-shell span {
  align-self: flex-start;
  color: #65736b;
  font: 10px var(--mono);
  letter-spacing: .01em;
}

body[data-screen="login"] .auth-input-shell input {
  align-self: flex-end;
  width: 100%;
  min-width: 0;
  margin: 17px 0 0 -72px;
  padding-left: 72px;
  color: #e2eee7;
  font: 13px var(--mono);
  letter-spacing: -.018em;
}

body[data-screen="login"] .auth-input-shell input::placeholder { color: #4c5a52; }
body[data-screen="login"] .auth-input-shell i { color: var(--mint); font-size: 15px; font-style: normal; }

body[data-screen="login"] .auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 45px;
  margin-top: 11px;
  padding: 0 13px 0 16px;
  border: 0;
  border-radius: 5px;
  color: #062017;
  background: var(--mint);
  box-shadow: 0 8px 18px rgba(34,227,154,.12);
  font-size: 12px;
  font-weight: 700;
  transition: transform .18s,background .18s;
}

body[data-screen="login"] .auth-submit:hover { color: #062017; background: var(--mint-hi); transform: translateY(-1px); }

body[data-screen="login"] .auth-submit i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 3px;
  color: var(--mint);
  background: #0b3a2a;
  font-size: 14px;
  font-style: normal;
}

body[data-screen="login"] .auth-security {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 18px;
  color: #56645c;
  font: 10px/1.5 var(--mono);
  letter-spacing: 0;
}

body[data-screen="login"] .lock-glyph { color: var(--mint); font-size: 13px; line-height: 10px; }
body[data-screen="login"] .auth-wallet-link { margin-top: 20px; color: #91a198; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
body[data-screen="login"] .auth-wallet-link span { color: var(--mint); text-decoration: none; }
body[data-screen="login"] .back-auth { margin: -8px 0 14px -5px; color: #718078; font: 10px var(--mono); }
body[data-screen="login"] .back-auth:hover { color: var(--paper); }

body[data-screen="login"] .otp-row { display: flex; gap: 7px; margin: 26px 0 8px; }
body[data-screen="login"] .otp-row input {
  width: calc((100% - 35px)/6);
  height: 49px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--mint);
  background: rgba(255,255,255,.018);
  text-align: center;
  font: 600 19px var(--mono);
}
body[data-screen="login"] .otp-row input:focus { border-color: var(--mint); background: rgba(34,227,154,.06); box-shadow: 0 0 0 3px rgba(34,227,154,.07); }
body[data-screen="login"] .auth-resend { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; color: #65736b; font: 9px var(--mono); }
body[data-screen="login"] .auth-resend b { color: #9baaa2; }
body[data-screen="login"] .auth-resend button { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

body[data-screen="login"] .login-close {
  position: absolute;
  top: 21px;
  right: 25px;
  z-index: 3;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #7e8d84;
  background: transparent;
  font-size: 20px;
  line-height: 25px;
}

body[data-screen="login"] .login-close:hover { border-color: var(--line-strong); color: var(--paper); }

body[data-screen="login"] .login-corner-note {
  position: absolute;
  bottom: 23px;
  left: 28px;
  display: flex;
  gap: 14px;
  color: #48564f;
  font: 9px var(--mono);
  letter-spacing: .08em;
}

body[data-screen="login"] .login-corner-note span + span::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 2px;
  margin: 0 14px 2px 0;
  border-radius: 50%;
  background: var(--mint);
}

@media (max-width: 520px) {
  body[data-screen="login"] .login-screen { padding: 18px 12px; }
  body[data-screen="login"] .auth-stage { width: min(100%,440px); }
  body[data-screen="login"] .auth-brandline { margin-bottom: 18px; }
  body[data-screen="login"] .auth-panel { min-height: 446px; padding: 32px 20px 27px; }
  body[data-screen="login"] .auth-panel h2 { font-size: 31px; }
  body[data-screen="login"] .login-close { top: 12px; right: 12px; }
  body[data-screen="login"] .login-corner-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-screen="login"] .login-ring { animation: none; }
}
