/* =============================================================================
 *  Lyra · AUTH 屏样式（内测登录门）—— 深色 Nocturne,主题 token 自动明暗
 *  触控 ≥44px;输入 font-size 16px（防 iOS 聚焦缩放）;禁紫;走设计系统 CSS 变量。
 * ========================================================================== */
.screen[data-screen="auth"] { height: 100%; }

.auth-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 安全区:小屏满铺时不被刘海/底部指示条压住 */
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface, #0E1119);
  border: 1px solid var(--hairline-strong, rgba(255,255,255,.10));
  border-radius: var(--r-lg, 26px);
  box-shadow: var(--shadow-soft, 0 12px 40px rgba(0,0,0,.35));
  padding: 30px 24px 24px;
  box-sizing: border-box;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}
.auth-mark { border-radius: 15px; display: block; }
.auth-title {
  font-family: var(--display, 'Cormorant Garamond', serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink, #F2EEE3);
  margin: 6px 0 0;
}
.auth-tag {
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 13px;
  color: var(--ink-muted, #A6A092);
  margin: 0;
}

/* 分段切换 注册 / 登录 */
.auth-seg {
  display: flex;
  gap: 4px;
  background: var(--surface-2, #10131f);
  border: 1px solid var(--hairline, rgba(255,255,255,.06));
  border-radius: var(--rad-md, 12px);
  padding: 4px;
  margin-bottom: 20px;
}
.auth-seg-btn {
  flex: 1;
  min-height: 40px;
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted, #A6A092);
  background: transparent;
  border: none;
  border-radius: var(--rad-sm, 8px);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.auth-seg-btn.on {
  color: var(--ink, #F2EEE3);
  background: color-mix(in srgb, var(--accent, #E8B964) 16%, transparent);
}

/* 表单 */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span {
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 13px;
  color: var(--ink-muted, #A6A092);
  padding-left: 2px;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;                 /* 触控 ≥44px */
  padding: 12px 14px;
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 16px;                  /* ≥16px:iOS 聚焦不自动放大 */
  color: var(--ink, #F2EEE3);
  background: var(--surface-2, #10131f);
  border: 1px solid var(--hairline-strong, rgba(255,255,255,.12));
  border-radius: var(--rad-md, 12px);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.auth-field input::placeholder { color: var(--ink-subtle, #6E6A5E); }
.auth-field input:focus {
  border-color: color-mix(in srgb, var(--accent, #E8B964) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #E8B964) 16%, transparent);
}

.auth-err {
  min-height: 18px;
  margin: -2px 0 0;
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.4;
  color: var(--coral, #E08A6E);
  padding-left: 2px;
}

.auth-submit {
  min-height: 50px;                 /* 大触控 */
  margin-top: 2px;
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--canvas, #080A14);
  background: var(--accent, #E8B964);
  border: none;
  border-radius: var(--rad-md, 12px);
  cursor: pointer;
  transition: transform .12s ease, opacity .16s ease;
}
.auth-submit:hover { opacity: .92; }
.auth-submit:active { transform: scale(.98); }
.auth-submit:disabled { opacity: .6; cursor: default; }

.auth-hint {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--ui, system-ui, sans-serif);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-subtle, #6E6A5E);
}
