:root {
  --brand: #1f9d57;            /* 绿野主色（取自启动图标绿色） */
  --brand-deep: #178a4b;
  --brand-soft: #e8f6ee;
  --ink: #1c2b22;
  --ink-2: #6b7a71;
  --ink-3: #a6b2ab;
  --line: #e3e9e5;
  --danger: #e5484d;
  --bg: #f4f7f5;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 800px at 50% -10%, #e7f6ec, var(--bg) 60%);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* 手机卡片容器 */
.phone {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: var(--card);
  padding: 0 28px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(31, 157, 87, 0.12);
}

/* 品牌区 */
.brand { text-align: center; padding: 52px 0 34px; }
.brand-logo {
  width: 72px; height: 72px; margin: 0 auto 16px;
  background: var(--brand);
  border-radius: 22px;
  position: relative;
  box-shadow: 0 10px 24px rgba(31, 157, 87, 0.35);
}
.logo-leaf {
  position: absolute; left: 14px; top: 12px;
  width: 26px; height: 40px;
  border-radius: 0 60% 60% 60%;
  background: rgba(255,255,255,0.95);
  transform: rotate(-45deg);
}
.logo-box {
  position: absolute; right: 13px; bottom: 14px;
  width: 24px; height: 26px;
  border: 4px solid rgba(255,255,255,0.95);
  border-top-width: 7px;
  border-radius: 5px;
}
.brand-name { margin: 0; font-size: 26px; letter-spacing: 3px; font-weight: 700; }
.brand-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; letter-spacing: 0.5px; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 4px; }
.field { margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.field-label .optional { color: var(--ink-3); font-size: 12px; }
.field-label .required { color: var(--danger); font-size: 12px; }
.input-row {
  display: flex; align-items: center;
  border-bottom: 1.5px solid var(--line);
  transition: border-color .2s;
}
.input-row:focus-within { border-color: var(--brand); }
.prefix { color: var(--ink-2); font-size: 15px; margin-right: 8px; padding-bottom: 12px; }
.input-row input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 16px; padding: 12px 0; color: var(--ink);
}
.input-row input::placeholder { color: var(--ink-3); }
.input-row input[readonly] { color: var(--brand-deep); opacity: .85; cursor: default; }

/* 滑块验证容器（阿里云） */
.slider-wrap {
  width: 100%; min-height: 40px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--brand-soft); overflow: hidden;
}
.slider-wrap .aliyun-captcha,
.slider-wrap [id*="captcha"] { width: 100% !important; }

/* 获取验证码按钮 */
.get-btn {
  border: 1.5px solid var(--brand); background: none; color: var(--brand);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  padding: 8px 14px; border-radius: 18px; cursor: pointer;
  margin-left: 12px; margin-bottom: 12px; transition: all .15s;
}
.get-btn:disabled { color: var(--ink-3); border-color: var(--line); cursor: default; }
.get-btn:not(:disabled):active { background: var(--brand); color: #fff; }

/* 滑块弹窗 */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 20; }
.modal.show { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(20, 30, 24, .45); }
.modal-box {
  position: relative; width: calc(100% - 48px); max-width: 380px;
  background: #fff; border-radius: 14px; padding: 18px 18px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 15px; color: var(--ink); }
.modal-close { border: 0; background: none; font-size: 22px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-err { min-height: 18px; margin: 10px 0 0; font-size: 12.5px; color: var(--danger); }
.modal-err:empty { margin: 0; }

/* 密码显示开关 */
.eye-btn {
  border: 0; background: none; color: var(--ink-3);
  padding: 10px 0 10px 14px; cursor: pointer;
  display: flex; align-items: center;
}
.eye-btn:hover { color: var(--ink-2); }

/* 协议 */
.agreement { margin: 6px 0 4px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; }
.box {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px;
  border: 1.5px solid var(--line); border-radius: 5px; position: relative;
  transition: background .15s, border-color .15s;
}
.checkbox input:checked + .box { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked + .box::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox .text { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* 错误提示 */
.error-msg { min-height: 18px; margin: 5px 0 0; font-size: 12px; color: var(--danger); }
.field[data-field] .error-msg:empty, .agreement .error-msg:empty { margin: 0; }

/* 提交按钮 */
.submit-btn {
  width: 100%; height: 50px; margin-top: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border: 0; border-radius: 25px; color: #fff;
  font-size: 17px; font-weight: 600; letter-spacing: 6px;
  cursor: pointer; box-shadow: 0 10px 22px rgba(31,157,87,.32);
  transition: transform .1s, box-shadow .2s, opacity .2s;
}
.submit-btn:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(31,157,87,.28); }
.submit-btn:disabled { opacity: .6; cursor: default; box-shadow: none; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: rgba(28,43,34,.92); color: #fff; font-size: 13.5px;
  padding: 11px 18px; border-radius: 22px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 9; max-width: 86%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: rgba(31,157,87,.95); }

/* 平板 / 桌面加卡片留白 */
@media (min-width: 560px) {
  .phone { min-height: auto; border-radius: 28px; margin: 40px auto; }
  body { padding: 24px; }
}
