/**
 * Header 樣式
 * - 密碼欄位眼睛切換
 * - Login Modal verify-sent 面板
 * - Logo 圖片
 * - v1.1.0 巴哈式即時驗證狀態列（綠勾 / 紅叉 / 紅框）
 *
 * @package weixiaoacg
 * @version 1.1.0 (2026-06-01)
 */

/* ── 品牌 Logo 圖片 ── */
.brand-logo-img {
  height: 38px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

/* ── 密碼顯示切換按鈕 ── */
.lm-pw-wrap {
  position: relative;
  display: block;
}
.lm-pw-wrap input {
  width: 100%;
  padding-right: 42px !important;
  box-sizing: border-box;
}
.lm-pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  padding: 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.lm-pw-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.lm-pw-toggle:focus {
  outline: none;
  color: #fff;
}
.lm-pw-toggle.is-show {
  color: var(--accent-blue, #3b82f6);
}

/* ── Register Honeypot ── */
.lm-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── 註冊表單 field hint ── */
.lm-field-hint {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
}

/* ── v1.1.0 巴哈式即時驗證狀態列 ── */
.lm-field-status {
  display: none;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}
.lm-field-status.is-visible {
  display: block;
}
.lm-field-status.is-ok {
  color: #10b981;
}
.lm-field-status.is-error {
  color: #ef4444;
}
.lm-field-status.is-checking {
  color: var(--text-muted);
}
.lm-field-status .lm-status-ico {
  margin-right: 4px;
}

/* 即時驗證的欄位邊框狀態 */
.lm-custom-form input.lm-input-ok {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18) !important;
}
.lm-custom-form input.lm-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18) !important;
}

/* 送出鈕反灰（未通過驗證） */
#lm-register-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* ── 註冊成功面板 ── */
.lm-verify-sent-inner {
  text-align: center;
  padding: 20px 10px;
}
.lm-verify-icon {
  font-size: 48px;
  color: #10b981;
  margin-bottom: 14px;
}
.lm-verify-title {
  margin: 0 0 10px;
  font-size: 20px;
  color: #fff;
}
.lm-verify-text {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.lm-verify-text strong {
  color: #fff;
}
.lm-verify-sub {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.lm-verify-tip {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #fbbf24;
}
.lm-verify-back {
  width: 100%;
}
