* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eff6ff;
  font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
  color: #061b43;
  display: flex;
  justify-content: center;
}

.viewport {
  width: min(100vw, 1005px);
  aspect-ratio: 1005/1565;
  position: relative;
}

.phone {
  position: absolute;
  left: 4.18%;
  top: 1.09%;
  width: 80.4%;
  height: 97.38%;
  border-radius: 7.5% / 4%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 4% 29%, #fff 0%, #ffffff8a 24%, transparent 49%),
    radial-gradient(ellipse at 95% 10%, #8dbdff 0%, transparent 48%),
    linear-gradient(130deg, #dcecff, #dfedff 57%, #d4e7ff);
  box-shadow: 0 16px 40px #6a95c52a;
  container-type: inline-size;
}

.wash {
  position: absolute;
  right: -12%;
  top: 11%;
  width: 78%;
  height: 24%;
  transform: rotate(-34deg);
  border-radius: 50%;
  background: linear-gradient(180deg, #e0f1ff22, #3b8bff38);
  border-top: 2px solid #ffffff44;
}

.logo {
  position: absolute;
  left: 7.4%;
  top: 9.6%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: linear-gradient(135deg, #2373ff, #2c6dff);
  box-shadow: inset 0 0 0 1px #ffffffb0;
  display: grid;
  place-items: center;
}

.logo img {
  width: 88%;
  height: 88%;
  filter: drop-shadow(0 3px 1px #0b43b744);
}

h1 {
  position: absolute;
  left: 8.4%;
  top: 20.3%;
  margin: 0;
  font-size: 7cqw;
  line-height: 1.29;
  letter-spacing: 0.1cqw;
  font-weight: 900;
}

.accent {
  position: absolute;
  left: 8.6%;
  top: 30.6%;
  width: 10.2%;
  height: 0.55%;
  border-radius: 99px;
  background: #1685ff;
  box-shadow: 0 1px white;
}

.intro {
  position: absolute;
  left: 8.5%;
  top: 32.5%;
  margin: 0;
  font-size: 3.05cqw;
  color: #435773;
  white-space: nowrap;
}

.camera-art {
  position: absolute;
  top: 13.2%;
  right: 2.7%;
  width: 45%;
  height: 20.6%;
  overflow: visible;
}

.steps {
  position: absolute;
  left: 4.2%;
  right: 4%;
  top: 37.1%;
  height: 3.9%;
  border-radius: 99px;
  background: linear-gradient(100deg, #ffffffdf, #ffffff65);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  font-size: 2.55cqw;
  white-space: nowrap;
}

.step {
  display: flex;
  gap: 0.7cqw;
  align-items: center;
}

.icon {
  width: 3.8cqw;
  height: 3.8cqw;
  fill: none;
  stroke: #127cff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.next {
  color: #80adff;
  font: 3cqw Arial;
}

.card {
  position: absolute;
  left: 4.1%;
  right: 4%;
  top: 44.6%;
  height: 39.5%;
  border: 1px solid #fff;
  border-radius: 4.6cqw;
  background: linear-gradient(120deg, #ffffffea, #ffffffbf);
  box-shadow: 0 20px 35px #5e8fea16;
  padding: 4cqw 4.6cqw;
}

label {
  display: block;
  font-size: 3.25cqw;
  font-weight: 700;
  margin: 0 0.7cqw 1.7cqw;
}

.input-row {
  height: 10.5cqw;
  display: flex;
  align-items: center;
  gap: 2.9cqw;
  padding: 0 3.6cqw;
  background: linear-gradient(100deg, #f1f5fc, #edf2fb);
  border-radius: 3.5cqw;
  box-shadow: inset 0 0 0 1px #eaf0fa;
}

.input-row .icon {
  stroke: #203750;
  width: 4.5cqw;
  height: 4.5cqw;
  flex: none;
}

.input-row input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: 4cqw Arial;
  color: #0b1835;
  outline: none;
}

.input-row:focus-within {
  outline: 2px solid #2583ff;
  outline-offset: 2px;
}

.password-label {
  margin-top: 4.4cqw;
}

.eye {
  padding: 0;
  background: none;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.eye .icon {
  stroke: #7c899d;
}

.login {
  width: 100%;
  height: 11.8cqw;
  margin-top: 5.5cqw;
  border-radius: 99px;
  border: 1px solid #ffffffaa;
  background: linear-gradient(115deg, #198aff, #0050ff 68%, #0446f7);
  box-shadow: 0 2cqw 2.8cqw #185afc32;
  color: #fff;
  font:
    700 4.3cqw 'Microsoft YaHei',
    sans-serif;
  cursor: pointer;
}

.login span {
  font: 5cqw Arial;
  margin-left: 1.5cqw;
}

.login:active {
  transform: translateY(1px);
}

.security {
  display: flex;
  align-items: center;
  gap: 1.7cqw;
  margin: 6cqw 2cqw 0;
  color: #4d6280;
  font-size: 3.05cqw;
  white-space: nowrap;
}

.security .icon {
  width: 4.2cqw;
  height: 4.2cqw;
  flex: none;
}

.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 14%;
  pointer-events: none;
}

.notice {
  position: absolute;
  top: 85%;
  left: 8%;
  right: 8%;
  text-align: center;
  background: #fff;
  color: #35516c;
  padding: 2cqw;
  border-radius: 2cqw;
  font-size: 2.8cqw;
  box-shadow: 0 3px 20px #4488ff22;
}

button: focus-visible {
  outline: 3px solid #072b87;
  outline-offset: 3px;
}

/* 实际网页布局：去除设备模型，内容随浏览器尺寸排列。 */
html {
  min-height: 100%;
  background: #dfedff;
}

body {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  background: #dfedff;
}

.viewport {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  aspect-ratio: auto;
  position: relative;
}

.phone {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  border-radius: 0;
  box-shadow: none;
  padding: 36px 20px 110px;
  container-type: normal;
}

.status,
.home {
  display: none;
}

.logo {
  position: relative;
  left: auto;
  top: auto;
  width: 72px;
  border-radius: 17px;
  margin-left: 14px;
}

.wash {
  top: 0;
  height: 380px;
}

.camera-art {
  top: 76px;
  right: 12px;
  width: 46%;
  max-width: 245px;
  height: 180px;
}

h1 {
  position: relative;
  left: auto;
  top: auto;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 14px 12px 0;
  z-index: 1;
}

.accent {
  position: relative;
  left: auto;
  top: auto;
  width: 44px;
  height: 5px;
  margin: 10px 12px;
}

.intro {
  position: relative;
  left: auto;
  top: auto;
  font-size: 14px;
  white-space: normal;
  line-height: 1.7;
  margin: 8px 12px 16px;
  z-index: 1;
}

.steps {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  height: 34px;
  font-size: 12px;
  gap: 3px;
  padding: 0 9px;
  margin-bottom: 20px;
}

.step {
  gap: 4px;
}

.icon {
  width: 18px;
  height: 18px;
}

.next {
  font-size: 15px;
}

.card {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  height: auto;
  border-radius: 22px;
  padding: 18px 18px 20px;
  max-width: 540px;
  margin: auto;
}

label {
  font-size: 16px;
  margin: 0 3px 8px;
}

.input-row {
  height: 49px;
  gap: 14px;
  padding: 0 17px;
  border-radius: 17px;
}

.input-row .icon {
  width: 22px;
  height: 22px;
}

.input-row input {
  font-size: 18px;
}

.password-label {
  margin-top: 18px;
}

.login {
  height: 53px;
  margin-top: 20px;
  font-size: 20px;
  box-shadow: 0 9px 15px #185afc32;
}

.login span {
  font-size: 24px;
  margin-left: 8px;
}

.security {
  gap: 9px;
  margin: 18px 5px 0;
  font-size: 14px;
  white-space: normal;
  line-height: 1.6;
}

.security .icon {
  width: 21px;
  height: 21px;
}

.waves {
  height: 110px;
  bottom: 0;
}

.notice {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 16px auto 0;
  max-width: 540px;
  font-size: 14px;
  padding: 12px;
  border-radius: 12px;
}

.phone {
  max-width: none;
}

@media (min-width: 650px) {
  .phone {
    padding: 36px max(24px, calc((100% - 540px) / 2)) 125px;
  }
  .camera-art {
    right: max(28px, calc((100% - 540px) / 2));
    width: 245px;
    top: 75px;
  }
  .steps {
    font-size: 14px;
    height: 42px;
  }
  .icon {
    width: 21px;
    height: 21px;
  }
  h1 {
    font-size: 40px;
  }
  .intro {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .phone {
    padding-left: 14px;
    padding-right: 14px;
  }
  .steps {
    padding: 0 5px;
    font-size: 11px;
  }
  .step {
    gap: 2px;
  }
  .steps .icon {
    width: 16px;
    height: 16px;
  }
  .card {
    padding-left: 16px;
    padding-right: 16px;
  }
  .security {
    font-size: 12px;
  }
  h1 {
    font-size: 31px;
  }
}

/* 独立 SVG 图片的尺寸由页面控制，图形颜色在对应 SVG 文件中修改。 */
.icon {
  display: block;
  flex-shrink: 0;
}

/* 320px 窄屏仍完整展示六个流程步骤，避免末项被裁切。 */
@media (max-width: 359px) {
  .steps {
    padding: 0 4px;
    gap: 0;
    font-size: 10px;
  }

  .steps .icon {
    width: 13px;
    height: 13px;
  }

  .steps .next {
    font-size: 10px;
  }
}

/* 登录表单沿用统一卡片比例；主按钮保留独立的主操作样式。 */
.card {
  border-radius: 16px;
  background: #ffffffd9;
  box-shadow: 0 5px 16px #3a70cd0e;
}

.input-row {
  border-radius: 12px;
}

.logo img {object-fit:contain;}
.login:disabled {opacity:.7;cursor:wait;}
.login-footer {position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;margin:22px auto 0;max-width:540px;color:#52647c;font-size:12px;line-height:20px;text-align:center;overflow-wrap:anywhere;}
.login-footer a {color:inherit;text-decoration:none;}
.login-footer a:hover {text-decoration:underline;}
.notice {color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;}

/* Keep legal information at the viewport bottom; long content extends naturally. */
.phone {display:flex;flex-direction:column;padding-bottom:24px!important;}
.logo,.steps,.card {flex-shrink:0;}
.card {width:100%;margin:0 auto;}
.login-footer {flex-shrink:0;width:100%;margin: auto auto 0;padding-top:28px;color:#263f61;}
.waves {opacity:.45;}
