/* ============================================================
   登录页 / 上传页 样式（承接 style.css 的 token）
   ============================================================ */

/* ---------- 登录 / 注册 ---------- */
.auth, .up {
  max-width: 440px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); padding: 20px 22px 40px;
}
.auth__back { font-size: 13px; color: var(--text-sub); }
.auth__brand { text-align: center; margin: 26px 0 22px; }
.auth__logo {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px;
  background: var(--grad); color: #fff; font-size: 32px; font-weight: 900;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.auth__logo--img {
  width: 84px; height: 84px; background: none; box-shadow: none; border-radius: 0;
  object-fit: contain;
}
.auth__title { font-size: 22px; font-weight: 900; color: var(--title); }
.auth__desc { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.auth__hint { font-size: 12px; line-height: 1.6; color: var(--text-sub); margin: 2px 0 4px; padding: 8px 10px; background: rgba(245,129,31,.06); border-left: 3px solid var(--primary, #f5811f); border-radius: 6px; }

.auth__card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(122,79,29,.06); }
.auth__switch { display: flex; background: var(--card); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.auth__tab { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text-sub); padding: 8px 0; border-radius: 999px; cursor: pointer; transition: all .2s; }
.auth__tab.is-active { background: var(--grad); color: #fff; box-shadow: 0 3px 10px rgba(240,115,15,.3); }

.field { display: block; margin-bottom: 14px; }
.field--hide { display: none; }
.field__label { font-size: 13px; font-weight: 700; color: var(--title); display: block; margin-bottom: 6px; }
.field__label i { color: var(--primary-deep); font-style: normal; }
.field__input {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 12px; outline: none; transition: border-color .2s;
}
.field__input:focus { border-color: var(--primary); }
.field__area { resize: vertical; }

.auth__err { color: #d63b2f; font-size: 13px; min-height: 18px; margin: 2px 0 8px; }
.auth__submit {
  width: 100%; border: none; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 900; color: #fff9ee;
  background: var(--grad); border-radius: 999px; padding: 13px 0;
  box-shadow: var(--shadow); transition: transform .15s, opacity .2s;
}
.auth__submit:active { transform: scale(.98); }
.auth__submit:disabled { opacity: .6; cursor: not-allowed; }
.auth__tip { text-align: center; font-size: 12px; color: var(--text-sub); margin-top: 12px; }
.auth__tip b { color: var(--primary-deep); }

/* ---------- 上传页 ---------- */
.up__bar { display: flex; align-items: center; justify-content: space-between; }
.up__user { font-size: 13px; color: var(--title); font-weight: 700; }
.up__title { font-size: 24px; font-weight: 900; color: var(--title); margin: 22px 0 2px; }
.up__sub { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }
.up__card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(122,79,29,.06); }

.up__imgs { display: flex; gap: 12px; margin: 6px 0 14px; }
.uploader { flex: 1; }
.uploader__label { font-size: 13px; font-weight: 700; color: var(--title); display: block; margin-bottom: 6px; }
.uploader__label i { color: var(--primary-deep); font-style: normal; }
.uploader__box {
  display: block; position: relative; cursor: pointer;
  aspect-ratio: 3 / 4; border: 1.5px dashed var(--line); border-radius: 12px;
  background: var(--bg); overflow: hidden; transition: border-color .2s;
}
.uploader__box:hover { border-color: var(--primary); }
.uploader__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-sub); font-size: 13px; }
.uploader__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.uploader.has-file .uploader__preview { display: block; }
.uploader.has-file .uploader__ph { display: none; }
.uploader__box.is-loading::after { content: "上传中…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,251,242,.75); color: var(--primary-deep); font-size: 13px; font-weight: 700; }
.up__hint { text-align: center; font-size: 12px; color: var(--text-sub); margin-top: 12px; }

/* 成功弹层 */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: var(--title); color: #fff; font-size: 14px; padding: 11px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 99; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
