/* ==========================================================
   登录 / 注册
   ========================================================== */
.auth-body {
  min-height: 100vh; display: flex; background: var(--paper); overflow-x: hidden;
}
.auth-visual {
  width: 52%; flex: none; position: relative; overflow: hidden; color: #EFEBDF;
  background:
    radial-gradient(90% 70% at 12% 10%, rgba(190, 149, 83, .2), transparent 60%),
    radial-gradient(80% 60% at 92% 88%, rgba(44, 122, 108, .34), transparent 62%),
    linear-gradient(155deg, #162823 0%, #0D1A17 52%, #0A1412 100%);
  display: flex; flex-direction: column; padding: 44px 54px;
}
.auth-visual:before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 46px);
}
.auth-visual:after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 520px; height: 520px;
  border-radius: 50%; border: 1px solid rgba(190, 149, 83, .22);
  box-shadow: 0 0 0 60px rgba(190, 149, 83, .03), 0 0 0 130px rgba(190, 149, 83, .02);
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark {
  width: 44px; height: 44px; border: 1px solid rgba(190, 149, 83, .65); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; position: relative; flex: none;
  background: linear-gradient(145deg, rgba(190, 149, 83, .16), rgba(190, 149, 83, .02));
}
.brand-mark:before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(190, 149, 83, .28); border-radius: 4px; }
.brand-mark span { font-family: var(--font-serif); font-size: 15px; letter-spacing: .06em; color: #E4C68F; }
.auth-brand .brand-mark { width: 44px; height: 44px; }
.auth-brand .brand-mark span { font-size: 17px; }
.auth-brand strong { display: block; font-size: 16px; letter-spacing: .06em; color: #F2EEE2; }
.auth-brand em { display: block; font-style: normal; font-size: 9px; letter-spacing: .24em; color: rgba(239, 235, 223, .45); font-family: var(--font-mono); margin-top: 2px; }

.auth-copy { position: relative; z-index: 2; margin-top: auto; max-width: 520px; }
.auth-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em; color: var(--gold-2); opacity: .8; }
.auth-copy h1 { font-size: 38px; line-height: 1.35; letter-spacing: .04em; color: #F6F2E6; margin: 16px 0 0; font-weight: 500; }
.auth-copy h1 em { font-style: normal; color: var(--gold-2); }
.auth-copy p { font-size: 13px; line-height: 1.9; color: rgba(239, 235, 223, .58); margin-top: 14px; max-width: 430px; }
.auth-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(239, 235, 223, .12); position: relative; z-index: 2; }
.auth-stats div span { display: block; font-family: var(--font-serif); font-size: 24px; color: #EFE7D4; }
.auth-stats div em { display: block; font-style: normal; font-size: 10.5px; color: rgba(239, 235, 223, .45); letter-spacing: .08em; margin-top: 2px; }
.auth-visual-foot { position: relative; z-index: 2; margin-top: 26px; font-size: 10.5px; color: rgba(239, 235, 223, .3); letter-spacing: .04em; }

.auth-file-stack { position: absolute; right: 6%; top: 16%; width: 300px; height: 320px; z-index: 1; }
.file-card {
  position: absolute; width: 240px; height: 300px; border: 1px solid rgba(190, 149, 83, .3);
  border-radius: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  backdrop-filter: blur(2px); padding: 20px;
}
.file-card:nth-child(1) { transform: rotate(-9deg) translate(-34px, 12px); opacity: .42; }
.file-card:nth-child(2) { transform: rotate(5deg) translate(26px, -6px); opacity: .68; }
.file-card:nth-child(3) { transform: rotate(-1deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.file-card .fc-tag { font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; color: var(--gold-2); }
.file-card .fc-line { height: 6px; border-radius: 3px; background: rgba(239, 235, 223, .14); margin-top: 12px; }
.file-card .fc-line.w70 { width: 70%; } .file-card .fc-line.w45 { width: 45%; } .file-card .fc-line.w85 { width: 85%; }
.file-card .fc-seal {
  position: absolute; right: 18px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(190, 149, 83, .5); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 9px; color: rgba(190, 149, 83, .85); text-align: center; line-height: 1.3;
  transform: rotate(-12deg);
}
.file-card .fc-avatar { width: 34px; height: 34px; border-radius: 8px; background: rgba(44, 122, 108, .35); border: 1px solid rgba(127, 195, 166, .3); }

.auth-panel {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 32px;
  position: relative;
  background-image: radial-gradient(rgba(29, 91, 81, .05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.auth-form-wrap { width: 100%; max-width: 396px; position: relative; z-index: 2; }
.auth-card {
  background: #FFFDF9; border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 34px 28px; box-shadow: 0 24px 60px rgba(30, 42, 36, .1);
  position: relative; overflow: hidden;
}
.auth-card:before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold) 55%, var(--gold-2)); }
.auth-head .eyebrow { display: block; }
.auth-head h2 { font-size: 24px; letter-spacing: .04em; color: var(--ink); margin-top: 8px; font-weight: 600; }
.auth-head p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.auth-form { margin-top: 24px; display: flex; flex-direction: column; gap: 15px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > label { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.auth-field .input-wrap { position: relative; display: flex; align-items: center; }
.auth-field .input-wrap > i { position: absolute; left: 12px; color: #A9ABA0; font-size: 14px; }
.auth-field .input { height: 42px; padding-left: 36px; background: #FBF8F1; border-radius: 9px; }
.auth-field .input:focus { background: #fff; }
.auth-field .peek { position: absolute; right: 6px; width: 30px; height: 30px; border-radius: 6px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.auth-field .peek:hover { background: var(--paper-2); color: var(--teal); }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.auth-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-row input { accent-color: var(--teal); }
.auth-submit { height: 44px; border-radius: 9px; font-size: 14px; letter-spacing: .12em; margin-top: 4px; }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 18px; }
.auth-foot a { color: var(--teal); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-error {
  display: none; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 7px;
  background: var(--danger-soft); color: var(--danger); font-size: 11.5px; border: 1px solid #EFD0C7;
}
.auth-error.show { display: flex; }
.auth-legal { margin-top: 22px; font-size: 10px; color: #A5A79D; text-align: center; line-height: 1.8; }
.auth-register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.auth-register-grid .full { grid-column: 1 / -1; }
.auth-card.wide { max-width: 520px; width: 100%; }
.auth-form-wrap.wide-wrap { max-width: 520px; }

@media (max-width: 1024px) {
  .auth-visual { display: none; }
  .auth-panel { background: var(--paper); }
}
@media (max-width: 560px) {
  .auth-panel { padding: 22px 16px; }
  .auth-card { padding: 26px 20px 22px; }
  .auth-register-grid { grid-template-columns: 1fr; }
  .auth-copy h1 { font-size: 28px; }
}
