/* 登录注册系列专属样式：左右分屏、极简表单、按需出现的 MFA/恢复码步骤。
   借鉴 Awwwards 登录/注册页的构图和留白比例，不复制其图片、字体、Logo
   或社交登录。数据库、权限、账号安全逻辑不受这份样式影响，以后要整套
   替换登录注册视觉时，只需要换这个目录。 */

.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-visual {
  flex: 0 0 44%;
  position: relative;
  background: #120e0a;
  display: flex;
  flex-direction: column;
  padding: 32px;
  overflow: hidden;
}

.auth-visual-mark {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #f4eee1;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.auth-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0.92;
}

.auth-main {
  flex: 1 1 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-panel {
  width: 100%;
  max-width: 360px;
}

.auth-panel h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.auth-panel .auth-subtitle {
  color: var(--lookmy-gray-500);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.auth-step {
  transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .auth-step {
    transition: none;
  }
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--lookmy-ink);
}

.auth-input-row {
  position: relative;
  display: flex;
  align-items: stretch;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid var(--lookmy-line);
  border-radius: var(--lookmy-radius);
  background: #fff;
  color: var(--lookmy-ink);
}

.auth-field input[aria-invalid='true'] {
  border-color: var(--lookmy-error);
}

.auth-input-row input {
  padding-right: 64px;
}

.auth-toggle-visibility {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  min-width: 48px;
  min-height: 48px;
  border: none;
  background: transparent;
  color: var(--lookmy-gray-500);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 10px;
}

.auth-toggle-visibility:hover {
  color: var(--lookmy-ink);
}

.auth-code-input input {
  letter-spacing: 0.3em;
  font-size: 1.1rem;
  text-align: center;
}

.auth-hint {
  color: var(--lookmy-gray-500);
  font-size: 0.8rem;
  margin: 6px 0 0;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: var(--lookmy-radius);
  background: var(--lookmy-ink);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 4px;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.auth-link-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--lookmy-gray-500);
}

.auth-link-row a {
  color: var(--lookmy-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--lookmy-gray-500);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  margin-top: 14px;
  display: inline-block;
}

.auth-text-link:hover {
  color: var(--lookmy-ink);
}

.auth-back-row {
  margin-top: 18px;
}

/* 类名跟 client.js 里 showMessage()/setFieldError() 硬编码的类名保持一致，
   两边共用同一套状态提示与字段错误逻辑，不为登录注册页另建一套 JS 行为。 */
.msg {
  border-radius: var(--lookmy-radius);
  padding: 10px 12px;
  font-size: 0.85rem;
  margin: 16px 0 0;
}

.msg-ok {
  background: var(--lookmy-ok-bg);
  color: var(--lookmy-ok-text);
}

.msg-error {
  background: var(--lookmy-error-bg);
  color: var(--lookmy-error);
}

.field-error {
  color: var(--lookmy-error);
  font-size: 0.8rem;
  margin: 6px 0 0;
  display: block;
}

.auth-success {
  text-align: left;
}

.auth-success p {
  color: var(--lookmy-ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .auth-visual {
    display: none;
  }
  .auth-main {
    padding: 20px;
  }
  .auth-panel {
    max-width: 440px;
  }
}
