/* ============================================================
   沐沐智慧农业平台 · 平台登录页（首页）
   ============================================================ */
:root {
  --g-main: #22a45d;
  --g-deep: #15873f;
  --font: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #1e9a50;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(168deg, #1c9649 0%, #2aa95c 30%, #45b970 58%, #74cf95 84%, #a3e0b6 100%);
  overflow: hidden;
}
/* 顶部光晕 */
.page::before {
  content: ''; position: absolute; left: 50%; top: -30vh; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
  pointer-events: none;
}
.hill { position: absolute; left: -2%; right: -2%; bottom: 0; height: 22vh; width: 104%; pointer-events: none; }

/* 角落品牌 & 快捷入口 */
.corner-brand {
  position: absolute; left: 28px; top: 24px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  color: #fff; opacity: .9; font-size: 12px; letter-spacing: 2px;
}
.corner-brand .mk {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.92);
  display: grid; place-items: center;
}
.top-links {
  position: absolute; right: 28px; top: 26px; z-index: 5;
  display: flex; gap: 8px;
}
.top-links a {
  font-size: 12px; color: #fff; text-decoration: none;
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.1);
  transition: background .18s;
}
.top-links a:hover { background: rgba(255,255,255,.22); }

/* 登录主体 */
.login-wrap { position: relative; z-index: 3; width: 100%; max-width: 400px; padding: 0 28px; text-align: center; }
.logo-box {
  width: 76px; height: 76px; border-radius: 20px; background: #fff;
  display: grid; place-items: center; margin: 0 auto 20px;
  box-shadow: 0 14px 38px rgba(8,56,28,.28);
}
.login-title {
  color: #fff; font-size: 27px; font-weight: 700; letter-spacing: 5px;
  text-shadow: 0 2px 14px rgba(8,56,28,.2);
}
.login-sub {
  color: rgba(255,255,255,.82); font-size: 11px; letter-spacing: 3px;
  margin-top: 9px; text-transform: uppercase;
}
.login-form { margin-top: 42px; text-align: left; }
.inp-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 2px;
  border-bottom: 1px solid rgba(255,255,255,.75);
  transition: border-color .2s;
}
.inp-row:focus-within { border-color: #fff; }
.inp-row svg { width: 20px; height: 20px; flex: 0 0 20px; }
.inp-row input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 16px; font-family: var(--font); letter-spacing: 1px;
  min-width: 0;
}
.inp-row input::placeholder { color: rgba(255,255,255,.72); letter-spacing: 2px; font-size: 15px; }
.inp-row .eye { cursor: pointer; opacity: .85; flex: 0 0 auto; }
.inp-row .eye:hover { opacity: 1; }

.form-opts {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 30px; color: #fff; font-size: 13.5px;
}
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.cb {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.9);
  display: grid; place-items: center; transition: all .18s; flex: 0 0 20px;
}
.cb.on { background: #2f7ff0; border-color: #2f7ff0; }
.cb svg { width: 11px; height: 11px; opacity: 0; transition: opacity .15s; }
.cb.on svg { opacity: 1; }
.form-opts .forget { cursor: pointer; opacity: .88; font-size: 12.5px; }
.form-opts .forget:hover { text-decoration: underline; }

.btn-login {
  width: 100%; padding: 13px 0; border: none; border-radius: 10px;
  background: #fff; color: var(--g-main); font-size: 16.5px; font-weight: 600;
  font-family: var(--font); letter-spacing: 6px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(8,56,28,.24);
  transition: transform .15s, box-shadow .15s, color .15s;
}
.btn-login:hover { color: var(--g-deep); box-shadow: 0 12px 32px rgba(8,56,28,.3); }
.btn-login:active { transform: scale(.98); }
.btn-demo {
  width: 100%; margin-top: 15px; padding: 11.5px 0;
  background: transparent; border: 1px solid rgba(255,255,255,.8); border-radius: 10px;
  color: #fff; font-size: 15px; letter-spacing: 3px; cursor: pointer;
  font-family: var(--font); transition: background .16s;
}
.btn-demo:hover { background: rgba(255,255,255,.14); }

.login-note {
  margin-top: 18px; font-size: 11.5px; color: rgba(255,255,255,.7);
  text-align: center; line-height: 1.7;
}

/* 底部 */
.bottom-links {
  position: absolute; bottom: 30px; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  color: rgba(255,255,255,.9); font-size: 12.5px;
}
.bottom-links span { cursor: pointer; }
.bottom-links span:hover { text-decoration: underline; }
.bottom-links .sep { opacity: .45; }
.version {
  position: absolute; right: 28px; bottom: 26px; z-index: 4;
  font-size: 12px; color: rgba(255,255,255,.75); letter-spacing: 1px;
}

/* toast */
#tst {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(20,44,32,.92); color: #fff; font-size: 13px;
  padding: 12px 20px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: all .22s; z-index: 100; max-width: 76%;
}
#tst.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 窄屏适配 */
@media (max-width: 520px) {
  .corner-brand { left: 20px; top: 18px; font-size: 11px; }
  .corner-brand .txt { display: none; }
  .top-links { right: 16px; top: 18px; gap: 6px; }
  .top-links a { font-size: 11px; padding: 6px 11px; }
  .login-wrap { padding: 0 30px; }
  .login-title { font-size: 24px; letter-spacing: 3px; }
  .logo-box { width: 70px; height: 70px; border-radius: 18px; }
  .hill { height: 16vh; }
}
@media (max-height: 700px) {
  .login-form { margin-top: 28px; }
  .form-opts { margin: 14px 0 22px; }
  .logo-box { width: 62px; height: 62px; margin-bottom: 14px; }
  .login-title { font-size: 23px; }
}
