/* ============================================================
 * 合膳养 · 登录/注册页样式
 * ============================================================ */

.login-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
}

/* ---------------- 品牌区 ---------------- */
.brand {
  flex: none;
  padding: calc(34px + var(--safe-t)) 24px 62px;
  background: linear-gradient(150deg, #2a9270 0%, #1f7a5c 46%, #155d46 100%);
  color: #fff;
  border-radius: 0 0 26px 26px;
  text-align: center;
}
.brand-mark {
  width: 76px; height: 76px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.brand-mark img {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: block;
}
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
}
.brand-slogan {
  margin-top: 6px;
  font-size: 13px;
  opacity: .82;
  letter-spacing: 1px;
}

/* ---------------- 卡片 ---------------- */
.card {
  flex: 1;
  margin: -34px 16px 0;
  padding: 20px 18px 26px;
  background: var(--c-card);
  border-radius: var(--r-l);
  box-shadow: 0 8px 26px rgba(21, 93, 70, .10);
}

/* ---------------- 输入项 ---------------- */
.field { display: block; margin-bottom: 16px; transition: margin .18s ease; }
.field[hidden] { display: none; }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--c-text-2);
  margin-bottom: 7px;
}
.field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #f6f8fa;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  color: var(--c-text);
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder { color: var(--c-text-3); font-size: 14px; }
.field input:focus {
  background: #fff;
  border-color: var(--c-primary);
}
.field.is-bad input { border-color: var(--c-danger); background: #fdf3f2; }

.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; min-width: 0; }
.btn-code {
  flex: none;
  width: 116px;
  height: 48px;
  border-radius: var(--r-m);
  background: var(--c-primary-l);
  color: var(--c-primary-d);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}
.btn-code:active { opacity: .8; }
.btn-code[disabled] {
  background: #eef1f3;
  color: var(--c-text-3);
  cursor: not-allowed;
}

.field-error {
  min-height: 20px;
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--c-danger);
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-2);
  margin-bottom: 14px;
}
.agree input {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: #fff;
}
.agree input:checked { background: var(--c-primary); border-color: var(--c-primary); }

.btn-submit { margin-top: 4px; }
.btn-submit.is-busy { opacity: .7; }

.hint {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--c-text-3);
}

.guest {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--c-primary);
  text-decoration: underline;
}

/* ---------------- 页脚 ---------------- */
.foot {
  flex: none;
  padding: 18px 16px calc(18px + var(--safe-b));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--c-text-3);
}
.foot-env {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-text-3);
}
.foot-env.is-remote { color: var(--c-primary-d); border-color: var(--c-primary); }
