/* ============================================================================
   香港航空 · 登入頁樣式（配合 assets/style.css 的港航設計參數）
   只用於 login.php，沿用全站白色卡片 + 品牌紅。
   ========================================================================== */
:root {
  --brand: #da2129;
  --ink: #333;
  --page: #f3f3f8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--page); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang HK", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  background: var(--page);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------------------------------------------------------- 頁首 */
.topbar {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.topbar .logo { display: flex; align-items: center; gap: 10px; }
.topbar .logo .mark { width: 34px; height: 34px; }
.topbar .logo .wordmark {
  height: 20px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}

/* ---------------------------------------------------------------- 卡片 */
.auth {
  max-width: 420px;
  margin: 40px auto 64px;
  padding: 32px 28px 34px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.auth h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }

.auth-lead {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.auth-error {
  background: #fff1f1;
  color: var(--brand);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.auth input {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
}

.auth input:focus {
  outline: none;
  border-color: var(--brand);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover { background: #bd1a22; }

.auth-text {
  display: block;
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: none;
  text-align: center;
  color: #666;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.auth-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.auth-foot a { color: var(--brand); font-weight: 600; }

@media (max-width: 480px) {
  .auth { margin: 20px 16px 40px; padding: 26px 20px 28px; }
}
