@charset "UTF-8";

/* ============================================================
   會員登入／註冊／忘記密碼／重寄驗證信（前台）
   版面與探索文章、我的詞彙庫等頁一致：淡藍底、白色卡片、
   10px 圓角與 --site-* 主色變數；本檔不寫死色碼。
   ============================================================ */

.auth-page {
  /* main 為 flex 容器，撐滿剩餘高度讓底色延伸至頁尾 */
  flex: 1;
  display: flex;
  align-items: center;
  background: #f6f8fb;
  padding: 40px 0 60px;
}

.au-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.au-card {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--site-primary-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(var(--site-primary-rgb), 0.08);
  overflow: hidden;
}

/* ---------------------------------------------
   左側介紹（藍色漸層，選填橫幅圖片為底）
   --------------------------------------------- */
.au-intro {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--site-primary-dark), var(--site-primary) 55%, var(--site-primary-light));
  color: #fff;
  overflow: hidden;
}

/* 後台「橫幅圖片管理」設定的圖片，以低透明度襯在漸層之下 */
.au-intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.au-intro-inner {
  position: relative;
  padding: 44px 36px;
}

.au-intro-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.au-intro-title {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.au-intro-desc {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.au-feature-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.au-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.au-feature-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 19px;
}

.au-feature-text {
  min-width: 0;
}

.au-feature-text strong {
  display: block;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.au-feature-text small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------------------------------------------
   右側表單
   --------------------------------------------- */
.au-panel {
  padding: 40px 42px 36px;
}

/* 分頁列（會員登入／註冊帳號） */
.au-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 26px;
  padding: 4px;
  border-radius: 7px;
  background: var(--site-primary-soft-2);
  border: 1px solid var(--site-primary-line);
}

.au-tabs.is-hidden {
  display: none;
}

.au-tab {
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #6b7280;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color 0.2s, color 0.2s;
}

.au-tab:hover {
  color: var(--site-primary);
}

.au-tab.active {
  background: var(--site-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--site-primary-rgb), 0.24);
}

/* 表單切換 */
.au-box {
  display: none;
}

.au-box.active {
  display: block;
  animation: au-fade 0.25s ease;
}

@keyframes au-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 返回連結（忘記密碼／重寄驗證信） */
.au-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #6b7280;
  font-size: 18px;
  font-weight: 600;
}

.au-back:hover {
  color: var(--site-primary);
}

/* 標題 */
.au-head {
  margin-bottom: 22px;
}

.au-title {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.au-subtitle {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

/* 欄位 */
.au-field + .au-field,
.au-grid + .au-field {
  margin-top: 16px;
}

.au-field > label {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.au-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.au-grid .au-field + .au-field {
  margin-top: 0;
}

.au-input {
  position: relative;
  display: flex;
  align-items: center;
}

.au-input > i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
  transition: color 0.2s;
}

.au-input input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--site-primary-line);
  border-radius: 7px;
  background: var(--site-primary-soft-2);
  color: #1f2937;
  font-size: 18.5px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.au-input input::placeholder {
  color: #94a3b8;
}

.au-input input:focus {
  outline: none;
  border-color: var(--site-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--site-primary-rgb), 0.12);
}

.au-input input:focus + .au-eye,
.au-input input:focus ~ i {
  color: var(--site-primary);
}

/* 顯示／隱藏密碼 */
.au-eye {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #94a3b8;
  font-size: 18px;
  transition: color 0.2s, background-color 0.2s;
}

.au-eye:hover {
  background: var(--site-primary-soft);
  color: var(--site-primary);
}

/* reCAPTCHA（未載入時為空元素，不會佔用高度） */
.au-recaptcha:not(:empty) {
  margin-top: 16px;
}

.au-recaptcha .g-recaptcha > div {
  max-width: 100%;
}

/* 保持登入狀態／忘記密碼 */
.au-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.au-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  cursor: pointer;
}

.au-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--site-primary);
  cursor: pointer;
}

/* 訂閱電子郵件（方塊選項） */
.au-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.au-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 14px;
  height: 44px;
  border: 1px solid var(--site-primary-line);
  border-radius: 7px;
  background: var(--site-primary-soft-2);
  color: #4b5563;
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.au-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--site-primary);
  cursor: pointer;
}

.au-option:hover {
  border-color: var(--site-primary-accent);
}

.au-option:has(input:checked) {
  border-color: var(--site-primary);
  background: var(--site-primary-soft);
  color: var(--site-primary);
  font-weight: 700;
}

/* 欄位補充說明 */
.au-hint {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.7;
}

/* 送出按鈕 */
.au-submit {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: var(--site-primary);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.au-submit:hover {
  background: var(--site-primary-dark);
  box-shadow: 0 8px 20px rgba(var(--site-primary-rgb), 0.24);
}

.au-submit:active {
  transform: translateY(1px);
}

/* 分隔線（送出按鈕與 LINE 登入之間） */
.au-divider {
  position: relative;
  margin: 22px 0 0;
  text-align: center;
}

.au-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

.au-divider span {
  position: relative;
  padding: 0 12px;
  background: #fff;
  color: #9ca3af;
  font-size: 16px;
}

/* LINE 登入按鈕（LINE 官方品牌綠，圖示沿用站內已載入的 FontAwesome brands） */
.au-line {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: #06c755;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.au-line:hover {
  background: #05a948;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.24);
  color: #fff;
}

.au-line:active {
  transform: translateY(1px);
}

.au-line i {
  font-size: 23px;
}

/* 底部切換連結 */
.au-foot {
  margin: 20px 0 0;
  color: #6b7280;
  font-size: 18px;
  text-align: center;
}

.au-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--site-primary);
  font-size: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.au-link:hover {
  color: var(--site-primary-dark);
  text-decoration: underline;
}

/* ---------------------------------------------
   單欄版（註冊成功、重置密碼）
   --------------------------------------------- */
.au-card-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  margin: 0 auto;
}

.au-card-single .au-panel {
  padding: 40px 38px 36px;
}

.au-note {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--site-primary-line);
  border-radius: 8px;
  background: var(--site-primary-soft-2);
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

/* 備註：信件可能被歸類到垃圾郵件（接在說明卡之下，字級略小） */
.au-note-spam {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-style: dashed;
  background: #fff;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.8;
}

.au-note-spam i {
  margin-top: 6px;
  color: var(--site-primary);
  font-size: 15px;
}

/* 頁面圖示（單欄版標題上方） */
.au-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--site-primary-soft);
  color: var(--site-primary);
  font-size: 26px;
}

.au-submit:disabled {
  background: #c2ccdb;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------------------------------------------
   響應式
   --------------------------------------------- */
@media (max-width: 991px) {
  .au-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .au-intro-inner {
    padding: 32px 28px;
  }

  .au-intro-title br {
    display: none;
  }

  .au-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .au-panel {
    padding: 32px 28px 30px;
  }
}

@media (max-width: 575px) {
  .auth-page {
    padding: 24px 0 40px;
  }

  .au-intro-inner {
    padding: 28px 20px;
  }

  .au-feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .au-panel {
    padding: 26px 20px 24px;
  }

  .au-grid,
  .au-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .au-title {
    font-size: 25px;
  }
}
