/* ===============================
   Login page - Layout & Background only
   (colors/shadows/borders are themed in app.css)
   =============================== */

/* Full-height base */
html, body { height: 100%; margin: 0; }

/* Background layer */
.login-bg{
  position: fixed;
  inset: 0;
  z-index: -1; /* 放在最底層 */
  /* 上→下：一層淡提亮 + 兩個點綴漸層 + 背景圖片 */
  background:
    linear-gradient(0deg, rgba(255,255,255,.12), rgba(255,255,255,.12)),
    radial-gradient(800px 480px at 80% -10%, rgba(99,102,241,.06), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(14,165,233,.04), transparent 60%),
    url('/images/bg-3c42fa959ca262d7458cfa064c161d99.jpg') center/cover no-repeat;
}

/* 置中版面容器（可套在 body > .login-page） */
.login-page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* 品牌區：只保留定位與尺寸，樣式交給主題 */
.brand-link{ position: fixed; left: 24px; top: 22px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo{ width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.brand-text{ font-weight: 600; }

/* Login 卡片：只保留尺寸與內距，其餘由主題接管（app.css 內的 .login-card） */
.login-card{
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  padding: 28px 26px;
  /* 不設定背景、邊框、陰影、字色 */
}

/* 卡片頭/尾：排版用 */
.card-head{ display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
.card-foot{ margin-top: 18px; }

/* 標題與副標：只保留間距與字重，顏色交給主題 */
.title{ font-size: 24px; font-weight: 700; margin: 0; }
.subtitle{ font-size: 14px; margin: 4px 0 0; }

/* 含 icon 的輸入欄位：只保留排版與間距 */
.input-icon{ position: relative; }
.input-icon > i{ position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.input-icon > .form-control{ padding-left: 38px; }

/* 表單欄位：不設定顏色/邊框，僅高度與圓角 */
.form-control{ height: 44px; border-radius: 12px; }

/* 語系切換/膠囊：只留排版 */
.pill{ display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; font-size: 12px; margin-right: 6px; }
.lang-switch a{ text-decoration: none; margin-left: 8px; }

/* 頁腳定位 */
.page-foot{ position: fixed; left: 0; right: 0; bottom: 14px; text-align: center; }

/* 小尺寸微調 */
@media (max-width: 576px){
  .brand-link{ left: 16px; top: 16px; }
  .login-page{ padding: 16px; }
  .login-card{ padding: 22px 20px; }
}

.brand-image {
  max-height: 120px;
  width: auto;
}