:root {
  color-scheme: light;
  --login-blue: #0967ff;
  --login-deep: #061833;
  --login-text: #12213a;
  --login-muted: #8190aa;
  --login-line: #dbe5f1;
  --login-card: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  color: var(--login-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f8ff;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(430px, 43vw) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}

.login-visual {
  position: relative;
  display: grid;
  align-content: start;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(34px, 5.8vh, 72px) clamp(42px, 6vw, 82px);
  background:
    radial-gradient(circle at 38% 17%, rgba(39, 124, 255, 0.3), transparent 24%),
    linear-gradient(180deg, #08234a 0%, #061b39 52%, #06142b 100%);
  color: #ffffff;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.18;
}

.brand-lockup,
.visual-copy,
.security-stage {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: grid;
  grid-template-columns: clamp(64px, 8.2vh, 82px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.2vw, 24px);
}

.brand-mark {
  display: grid;
  width: clamp(64px, 8.2vh, 82px);
  height: clamp(64px, 8.2vh, 82px);
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #2c8cff, #095eff);
  box-shadow: 0 20px 48px rgba(17, 111, 255, 0.34);
  font-size: clamp(28px, 3.4vh, 34px);
  font-weight: 950;
}

.brand-lockup strong {
  display: block;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-lockup small {
  display: block;
  margin-top: 8px;
  color: #b5c6df;
  font-size: clamp(18px, 2.3vh, 24px);
  font-weight: 800;
}

.visual-copy {
  margin-top: clamp(34px, 6vh, 58px);
  padding-left: 78px;
}

.visual-copy h1 {
  margin: 0 0 14px;
  font-size: 27px;
  font-weight: 950;
}

.visual-copy p {
  margin: 0;
  color: #9fb4d1;
  font-size: 20px;
  font-weight: 750;
}

.world-map {
  position: absolute;
  left: 6%;
  right: 0;
  bottom: clamp(210px, 30vh, 300px);
  height: clamp(96px, 17vh, 150px);
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(83, 151, 255, 0.9) 1.4px, transparent 1.6px);
  background-size: 10px 10px;
  mask-image:
    radial-gradient(ellipse at 22% 52%, #000 0 26%, transparent 27%),
    radial-gradient(ellipse at 52% 42%, #000 0 24%, transparent 25%),
    radial-gradient(ellipse at 72% 53%, #000 0 22%, transparent 23%),
    radial-gradient(ellipse at 41% 75%, #000 0 12%, transparent 13%);
}

.security-stage {
  align-self: end;
  height: clamp(220px, 35vh, 330px);
  margin-top: clamp(36px, 8vh, 82px);
}

.platform {
  position: absolute;
  left: 6%;
  bottom: 8%;
  width: min(78%, 430px);
  height: clamp(82px, 12vh, 112px);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(136, 197, 255, 0.95), rgba(38, 112, 255, 0.7) 45%, rgba(8, 81, 222, 0.96));
  box-shadow: 0 26px 90px rgba(20, 111, 255, 0.46), inset 0 2px 0 rgba(255, 255, 255, 0.65);
}

.platform::before,
.platform::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 22px;
  border-radius: 999px;
  background: rgba(226, 244, 255, 0.82);
}

.platform::before {
  top: 24px;
}

.platform::after {
  bottom: 18px;
}

.shield {
  position: absolute;
  left: 31%;
  bottom: 44%;
  width: clamp(104px, 14vh, 132px);
  height: clamp(118px, 16vh, 150px);
  filter: drop-shadow(0 24px 38px rgba(0, 118, 255, 0.48));
}

.shield::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 94% 16%, 88% 68%, 50% 100%, 12% 68%, 6% 16%);
  background: linear-gradient(145deg, #67a9ff 0%, #006dff 54%, #00c6ff 100%);
  border: 4px solid rgba(194, 224, 255, 0.72);
}

.shield b {
  position: absolute;
  left: 35%;
  top: 34%;
  width: 36%;
  height: 18%;
  border-left: clamp(8px, 1.2vh, 12px) solid #ffffff;
  border-bottom: clamp(8px, 1.2vh, 12px) solid #ffffff;
  transform: rotate(-45deg);
}

.glass-card {
  position: absolute;
  width: clamp(104px, 14vh, 132px);
  height: clamp(78px, 10.5vh, 102px);
  border: 1px solid rgba(141, 194, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 144, 255, 0.32), rgba(109, 170, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 22px 48px rgba(0, 61, 164, 0.34);
  backdrop-filter: blur(10px);
}

.card-id {
  left: 0;
  bottom: 42%;
}

.card-id span {
  position: absolute;
  left: 25px;
  top: 34px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(225, 241, 255, 0.86);
}

.card-id i {
  position: absolute;
  left: 74px;
  width: 44px;
  height: 7px;
  border-radius: 999px;
  background: rgba(192, 220, 255, 0.38);
}

.card-id i:nth-child(2) {
  top: 36px;
}

.card-id i:nth-child(3) {
  top: 56px;
  width: 58px;
}

.card-lock {
  left: 65%;
  bottom: 43%;
}

.card-lock span {
  position: absolute;
  left: 52px;
  top: 43px;
  width: 36px;
  height: 32px;
  border-radius: 6px;
  border: 3px solid rgba(24, 112, 255, 0.76);
}

.card-lock span::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -28px;
  width: 20px;
  height: 25px;
  border: 4px solid rgba(24, 112, 255, 0.76);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.login-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(18px, 3vh, 30px) 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(214, 226, 246, 0.46), transparent 28%),
    #f4f8ff;
}

.login-heading {
  margin-bottom: clamp(16px, 2.6vh, 24px);
  text-align: center;
}

.login-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.2vh, 36px);
  line-height: 1;
  font-weight: 950;
}

.login-heading p {
  margin: 0;
  color: var(--login-muted);
  font-size: clamp(16px, 2vh, 18px);
  font-weight: 800;
}

.login-card {
  width: min(100%, 520px);
  padding: clamp(22px, 3.2vh, 30px) 28px clamp(20px, 2.8vh, 26px);
  border: 1px solid rgba(216, 226, 242, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(49, 78, 123, 0.12);
}

.login-card label {
  display: grid;
  gap: 9px;
  margin-bottom: clamp(16px, 2.4vh, 22px);
  color: #101f37;
  font-size: 16px;
  font-weight: 950;
}

.login-card input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--login-line);
  border-radius: 8px;
  background: #ffffff;
  color: #12213a;
  font-size: 15px;
  font-weight: 850;
  outline: 0;
}

.login-card input:focus {
  border-color: #5b9cff;
  box-shadow: 0 0 0 3px rgba(30, 111, 246, 0.1);
}

.login-card input::placeholder {
  color: #9ba8bc;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: end;
  gap: 12px;
}

.code-row label {
  margin-bottom: clamp(14px, 2vh, 18px);
}

.send-code-button {
  min-height: 48px;
  margin-bottom: clamp(14px, 2vh, 18px);
  border: 1px solid #0d6bff;
  border-radius: 8px;
  background: #ffffff;
  color: #075ce4;
  font-weight: 950;
}

.send-code-button:disabled,
.login-button:disabled,
.access-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.input-wrap {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--login-line);
  border-radius: 8px;
  background: #ffffff;
}

.input-wrap:focus-within {
  border-color: #5b9cff;
  box-shadow: 0 0 0 3px rgba(30, 111, 246, 0.1);
}

.input-wrap i {
  display: grid;
  place-items: center;
  color: #8392aa;
  font-style: normal;
  font-size: 18px;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  color: #12213a;
  font-weight: 800;
}

.input-wrap input::placeholder {
  color: #9ba8bc;
}

.icon-toggle {
  display: grid;
  width: 44px;
  height: 46px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8190aa;
  font-weight: 900;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 clamp(16px, 2.4vh, 22px);
}

.access-status {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #f8fbff;
}

.access-status i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #146cff;
  color: #ffffff;
  font-style: normal;
}

.access-status strong,
.access-status span {
  display: block;
}

.access-status strong {
  margin-bottom: 6px;
  color: #101f37;
  font-size: 17px;
  font-weight: 950;
}

.access-status span {
  color: #71809a;
  font-size: 14px;
  font-weight: 800;
}

.access-status.ok {
  border-color: #bfe8d9;
  background: #f1fbf6;
}

.access-status.ok i {
  background: #18af75;
}

.remember-line {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  margin: 0 !important;
  color: #22304a !important;
  font-weight: 850 !important;
}

.remember-line input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--login-blue);
}

.forgot-button {
  border: 0;
  background: transparent;
  color: #0c69ff;
  font-weight: 900;
}

.login-message {
  min-height: 20px;
  margin: -8px 0 10px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 850;
}

.login-message.ok {
  color: #14835d;
}

.login-button,
.access-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 950;
}

.login-button {
  border: 0;
  background: linear-gradient(135deg, #0e69ff, #005bf0);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(8, 103, 255, 0.22);
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: clamp(16px, 2.4vh, 22px) 0 clamp(14px, 2vh, 18px);
  color: #97a4b8;
  font-weight: 850;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: #e0e8f4;
}

.access-button {
  gap: 12px;
  border: 1px solid var(--login-line);
  background: #ffffff;
  color: #17243c;
}

.access-button.subtle {
  margin-top: 10px;
  min-height: 44px;
  font-size: 15px;
  color: #5f6f88;
}

.access-button i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #146cff;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
}

.login-footer {
  margin-top: clamp(16px, 2.8vh, 24px);
  color: #8190aa;
  text-align: center;
  font-weight: 800;
}

.login-footer p {
  margin: 0 0 8px;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .login-visual {
    height: auto;
    min-height: 420px;
    padding: 44px 28px;
  }

  .visual-copy {
    padding-left: 0;
  }

  .security-stage {
    display: none;
  }

  .login-panel {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .code-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .send-code-button {
    margin-top: -4px;
  }
}

@media (min-width: 981px) and (max-height: 720px) {
  .login-visual {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .brand-lockup {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 26px;
  }

  .brand-lockup strong {
    font-size: 28px;
  }

  .brand-lockup small {
    margin-top: 4px;
    font-size: 16px;
  }

  .visual-copy {
    margin-top: 28px;
    padding-left: 58px;
  }

  .security-stage {
    height: 180px;
    margin-top: 24px;
  }

  .world-map {
    bottom: 160px;
    height: 90px;
  }

  .login-panel {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .login-heading {
    margin-bottom: 14px;
  }

  .login-heading h2 {
    margin-bottom: 8px;
    font-size: 28px;
  }

  .login-heading p {
    font-size: 15px;
  }

  .login-card {
    width: min(100%, 500px);
    padding: 20px 26px 22px;
  }

  .login-card label {
    gap: 8px;
    margin-bottom: 14px;
  }

  .code-row label,
  .send-code-button {
    margin-bottom: 12px;
  }

  .input-wrap {
    min-height: 44px;
  }

  .input-wrap input,
  .icon-toggle {
    height: 42px;
  }

  .login-options {
    margin-bottom: 14px;
  }

  .login-message {
    min-height: 18px;
    margin: -6px 0 8px;
  }

  .login-button {
    min-height: 46px;
  }

  .login-divider,
  .access-button,
  .login-footer {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-lockup {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }

  .brand-lockup strong {
    font-size: 26px;
  }

  .brand-lockup small {
    font-size: 17px;
  }

  .login-card {
    padding: 28px 18px 22px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}
