/* Noandishan V62 — isolated, mobile-first login experience. */
body.login-v62 {
  --login-v62-ink: #14213d;
  --login-v62-muted: #69758d;
  --login-v62-line: #dfe5f0;
  --login-v62-primary: #4457d9;
  --login-v62-primary-dark: #3042bd;
  min-height: 100dvh;
  color: var(--login-v62-ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(112, 132, 235, .16), transparent 27rem),
    radial-gradient(circle at 89% 88%, rgba(40, 184, 173, .13), transparent 25rem),
    #f4f7fc;
}

body.login-v62 .auth-shell {
  display: block;
  min-height: 100dvh;
  padding: 0;
}

body.login-v62 .auth-main {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.login-v62 .mainBody {
  position: relative;
  display: grid;
  min-height: 100dvh;
  padding:
    max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  place-items: center;
  isolation: isolate;
}

body.login-v62 .mainBody::before,
body.login-v62 .mainBody::after {
  position: fixed;
  z-index: -1;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(68, 87, 217, .13);
  border-radius: 48% 52% 62% 38%;
  content: "";
  opacity: .55;
  pointer-events: none;
}

body.login-v62 .mainBody::before { inset: -110px auto auto -90px; transform: rotate(24deg); }
body.login-v62 .mainBody::after { inset: auto -100px -130px auto; border-color: rgba(24, 165, 161, .17); transform: rotate(-18deg); }

body.login-v62 .flash-wrap {
  position: fixed;
  z-index: 30;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  display: grid;
  width: min(520px, calc(100% - 28px));
  gap: 8px;
  transform: translateX(-50%);
}

body.login-v62 .flash {
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 15px;
  color: #26324a;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 45px rgba(24, 39, 76, .16);
  font-size: .84rem;
  font-weight: 750;
  backdrop-filter: blur(18px);
}

body.login-v62 .flash-danger { border-color: #fecdd3; color: #9f1239; background: rgba(255, 241, 242, .98); }
body.login-v62 .flash-warning { border-color: #fde7ad; color: #8a5b08; background: rgba(255, 250, 235, .98); }
body.login-v62 .flash-success { border-color: #bcebd9; color: #08785e; background: rgba(239, 253, 247, .98); }
body.login-v62 .flash button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: currentColor;
  background: rgba(255, 255, 255, .58);
  font-size: 1.25rem;
  cursor: pointer;
}

.loginV62 { width: min(1100px, 100%); margin: auto; }
.loginV62Shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  min-height: min(690px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 34px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 90px rgba(33, 49, 94, .14), 0 3px 12px rgba(35, 51, 92, .05);
}

.loginV62Story {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  padding: clamp(30px, 4.4vw, 58px);
  flex-direction: column;
  color: #fff;
  background: linear-gradient(145deg, rgba(14, 29, 69, .98), rgba(35, 55, 126, .96) 58%, rgba(25, 119, 130, .94)), #182a60;
  isolation: isolate;
}

.loginV62Story::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.loginV62StoryGlow {
  position: absolute;
  z-index: -1;
  top: -140px;
  left: -125px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(67, 222, 211, .18);
  filter: blur(4px);
}

.loginV62Brand,
.loginV62MobileBrand { display: flex; align-items: center; gap: 12px; }
.loginV62BrandMark {
  display: grid;
  width: 50px;
  min-width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #7889f4, #4e64dd 58%, #22bdb4);
  box-shadow: 0 13px 28px rgba(4, 13, 44, .25), inset 0 1px rgba(255, 255, 255, .35);
}
.loginV62BrandMark svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linejoin: round; }
.loginV62Brand strong,
.loginV62MobileBrand strong { display: block; font-size: 1.03rem; font-weight: 900; letter-spacing: -.02em; }
.loginV62Brand small,
.loginV62MobileBrand small { display: block; margin-top: 2px; color: #bec9e7; font-size: .72rem; }

.loginV62StoryCopy { max-width: 520px; margin-top: clamp(46px, 8vh, 82px); }
.loginV62Kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #dce5ff;
  background: rgba(255, 255, 255, .07);
  font-size: .75rem;
  font-weight: 800;
}
.loginV62Kicker i { width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 5px rgba(94, 234, 212, .1); }
.loginV62StoryTitle { margin: 19px 0 13px; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 950; line-height: 1.28; letter-spacing: -.045em; }
.loginV62StoryCopy p { max-width: 470px; margin: 0; color: #c4cfea; font-size: clamp(.88rem, 1.4vw, 1rem); line-height: 2; }

.loginV62Plan {
  width: min(100%, 480px);
  margin-top: clamp(30px, 6vh, 54px);
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 23px;
  background: rgba(10, 22, 58, .36);
  box-shadow: 0 24px 50px rgba(5, 14, 44, .16);
  backdrop-filter: blur(15px);
}
.loginV62PlanHead { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 11px; color: #dce4fa; font-size: .75rem; }
.loginV62PlanHead b { color: #8df2e6; font-size: .68rem; }
.loginV62PlanRow { display: grid; grid-template-columns: 48px 8px minmax(0, 1fr) auto; min-height: 57px; align-items: center; gap: 10px; padding: 8px 9px; border-top: 1px solid rgba(255, 255, 255, .08); color: #d9e2fa; }
.loginV62PlanRow.is-active { margin-inline: -3px; border: 1px solid rgba(109, 227, 216, .25); border-radius: 14px; background: rgba(45, 202, 190, .1); }
.loginV62PlanRow > i { width: 7px; height: 7px; border-radius: 50%; background: #8fa0cb; }
.loginV62PlanRow.is-active > i { background: #62eadc; box-shadow: 0 0 0 5px rgba(98, 234, 220, .09); }
.loginV62PlanTime { direction: ltr; color: #aebada; font-size: .7rem; text-align: left; }
.loginV62PlanRow strong,
.loginV62PlanRow small { display: block; }
.loginV62PlanRow strong { color: #fff; font-size: .78rem; }
.loginV62PlanRow small { margin-top: 2px; color: #aebada; font-size: .64rem; }
.loginV62PlanRow em { padding: 5px 8px; border-radius: 8px; color: #8df2e6; background: rgba(67, 215, 203, .1); font-size: .62rem; font-style: normal; font-weight: 850; }
.loginV62PlanProgress { display: flex; align-items: center; gap: 9px; padding: 13px 4px 1px; color: #aebada; font-size: .66rem; }
.loginV62PlanProgress > span { display: block; overflow: hidden; width: 72px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.loginV62PlanProgress > span i { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #65e9dc, #87a1ff); }
.loginV62PlanProgress b { font-weight: 700; }

.loginV62StoryFooter { display: flex; margin-top: auto; padding-top: 30px; flex-wrap: wrap; gap: 10px 18px; color: #bcc8e4; font-size: .68rem; }
.loginV62StoryFooter span { display: inline-flex; align-items: center; gap: 6px; }
.loginV62StoryFooter i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 6px; color: #79e6da; background: rgba(90, 226, 212, .1); font-size: .65rem; font-style: normal; }

.loginV62Panel {
  display: flex;
  min-width: 0;
  padding: clamp(28px, 5vw, 64px);
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .98);
}
.loginV62MobileBrand { display: none; }
.loginV62Header > span { display: block; margin-bottom: 8px; color: var(--login-v62-primary); font-size: .76rem; font-weight: 900; }
.loginV62Header h1 { margin: 0; color: var(--login-v62-ink); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 950; line-height: 1.45; letter-spacing: -.035em; }
.loginV62Header p { margin: 8px 0 0; color: var(--login-v62-muted); font-size: .86rem; line-height: 1.9; }

.loginV62Form { display: grid; gap: 17px; margin-top: 28px; }
.loginV62Field { display: grid; gap: 8px; }
.loginV62Field label { margin-inline: 3px; color: #344059; font-size: .8rem; font-weight: 850; }
.loginV62Input { position: relative; }
.loginV62Input > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  color: #8a96aa;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}
body.login-v62 .loginV62Input input {
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 49px 0 15px;
  border: 1px solid var(--login-v62-line);
  border-radius: 16px;
  outline: 0;
  color: #1f2b44;
  background: #fbfcfe;
  box-shadow: 0 3px 12px rgba(24, 39, 75, .025);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.login-v62 .loginV62PasswordInput input { padding-left: 84px; }
body.login-v62 .loginV62Input input::placeholder { color: #a3adbd; opacity: 1; }
body.login-v62 .loginV62Input:focus-within > svg { color: var(--login-v62-primary); }
body.login-v62 .loginV62Input input:focus { border-color: #7b8be8; background: #fff; box-shadow: 0 0 0 4px rgba(68, 87, 217, .1); }

.loginV62PasswordToggle {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 6px;
  display: inline-flex;
  min-width: 70px;
  height: 44px;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 11px;
  color: #53617a;
  background: #eef1f7;
  font: inherit;
  font-size: .66rem;
  font-weight: 800;
  cursor: pointer;
}
.loginV62PasswordToggle:hover { color: var(--login-v62-primary); background: #e9edff; }
.loginV62PasswordToggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loginV62EyeClosed { display: none; }
.loginV62PasswordToggle.is-visible .loginV62EyeOpen { display: none; }
.loginV62PasswordToggle.is-visible .loginV62EyeClosed { display: block; }

.loginV62Submit {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 56px;
  margin-top: 3px;
  padding: 12px 20px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--login-v62-primary), var(--login-v62-primary-dark));
  box-shadow: 0 14px 28px rgba(55, 71, 192, .23);
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.loginV62Submit:hover { transform: translateY(-1px); box-shadow: 0 17px 34px rgba(55, 71, 192, .27); }
.loginV62Submit:active { transform: translateY(0); }
.loginV62Submit > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); }
.loginV62Submit > i { display: none; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .36); border-top-color: #fff; border-radius: 50%; animation: loginV62Spin .8s linear infinite; }
.loginV62Submit[aria-busy="true"] { opacity: .78; cursor: wait; pointer-events: none; }
.loginV62Submit[aria-busy="true"] > svg { display: none; }
.loginV62Submit[aria-busy="true"] > i { display: block; }

.loginV62FirstLogin {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  margin-top: 18px;
  padding: 12px 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e9f4;
  border-radius: 15px;
  background: #f8f9fd;
}
.loginV62FirstLogin > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--login-v62-primary); background: #e9edff; }
.loginV62FirstLogin svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loginV62FirstLogin p { margin: 0; color: var(--login-v62-muted); font-size: .69rem; line-height: 1.75; }
.loginV62FirstLogin strong { color: #34415c; }

.loginV62Footer { display: flex; margin-top: 24px; padding-top: 20px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; border-top: 1px solid #edf0f5; color: var(--login-v62-muted); font-size: .76rem; }
.loginV62Footer a { min-height: 44px; padding: 11px 7px; border-radius: 10px; color: var(--login-v62-primary); font-weight: 900; text-decoration: none; }
.loginV62Footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.login-v62 :is(a, button, input):focus-visible { outline: 3px solid rgba(68, 87, 217, .24); outline-offset: 3px; }

@keyframes loginV62Spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  body.login-v62 .mainBody { padding: 0; place-items: stretch; }
  .loginV62 { width: 100%; }
  .loginV62Shell { display: block; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .loginV62Story { display: none; }
  .loginV62Panel { min-height: 100dvh; padding: max(25px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); justify-content: center; }
  .loginV62MobileBrand { display: flex; margin-bottom: clamp(30px, 7vh, 54px); }
  .loginV62MobileBrand .loginV62BrandMark { width: 46px; min-width: 46px; height: 46px; border-radius: 15px; }
  .loginV62MobileBrand small { color: #7a869d; }
  .loginV62Panel > * { width: min(100%, 460px); margin-inline: auto; }
  .loginV62Form { margin-top: 25px; }
  .loginV62Footer { margin-top: 20px; }
}

@media (max-width: 390px) {
  .loginV62Panel { padding-inline: max(15px, env(safe-area-inset-right)); }
  .loginV62MobileBrand { margin-bottom: 27px; }
  .loginV62Header h1 { font-size: 1.55rem; }
  .loginV62Header p { font-size: .8rem; }
  .loginV62Form { gap: 14px; margin-top: 21px; }
  body.login-v62 .loginV62Input input,
  .loginV62Submit { min-height: 54px; height: 54px; }
  .loginV62FirstLogin { margin-top: 15px; }
}

@media (max-height: 710px) and (min-width: 821px) {
  .loginV62Shell { min-height: calc(100dvh - 28px); }
  .loginV62StoryCopy { margin-top: 34px; }
  .loginV62Plan { margin-top: 24px; }
  .loginV62Panel { padding-block: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .loginV62Submit,
  body.login-v62 .loginV62Input input { transition: none; }
  .loginV62Submit > i { animation-duration: 1.5s; }
}

@media (prefers-contrast: more) {
  body.login-v62 .loginV62Input input { border-width: 2px; border-color: #667085; }
  .loginV62FirstLogin { border-color: #aeb7c8; }
  .loginV62Submit { background: #263aa8; }
}
