:root {
  /* CIMA 標準品牌色票 */
  --cima-navy: #102a43; /* 主色：深海軍藍 */
  --cima-navy-hover: #1b3b5a; /* 深海軍藍懸停狀態 */
  --cima-gold: #c9a44c; /* 強調色：品牌金 */
  --cima-bg-white: #ffffff; /* 基礎底色：白色 */
  --cima-bg-warm: #f4f2ed; /* 輔助底色：暖灰白 */
  --cima-text-dark: #2d3748; /* 正文色：深灰 */
  --cima-text-muted: #6b7280; /* 次要文字：中灰 */
  --cima-tech-blue: #3d7ea6; /* 科技輔助色：柔和藍 */
  --cima-error: #c53030; /* 錯誤提示紅 */
  --cima-font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--cima-bg-warm);
  color: var(--cima-text-dark);
  font-family: var(--cima-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

/* 登入主卡片 */
.login-card {
  background-color: var(--cima-bg-white);
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 40px 32px 32px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
  border-top: 5px solid var(--cima-gold);
  text-align: center;
}

/* Logo 區塊：嚴格維持比例不變形 */
.logo-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.logo-wrapper img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
}

/* 系統標題與標語 */
.system-title {
  color: var(--cima-navy);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.system-subtitle {
  color: var(--cima-gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

/* 表單區塊 */
.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--cima-navy);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--cima-font);
  color: var(--cima-text-dark);
  background-color: #fafafa;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  background-color: var(--cima-bg-white);
  border-color: var(--cima-tech-blue);
  box-shadow: 0 0 0 3px rgba(61, 126, 166, 0.15);
}

/* 顯示/隱藏密碼按鈕 */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cima-text-muted);
  font-size: 13px;
  font-family: var(--cima-font);
  cursor: pointer;
  padding: 4px;
}

.toggle-password:hover {
  color: var(--cima-navy);
}

/* 錯誤訊息提示框（預設隱藏） */
.error-banner {
  display: none;
  background-color: #fff5f5;
  color: var(--cima-error);
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: center;
}

/* 登入主按鈕 */
.btn-submit {
  width: 100%;
  padding: 13px;
  background-color: var(--cima-navy);
  color: var(--cima-bg-white);
  font-family: var(--cima-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--cima-gold);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-submit:hover {
  background-color: var(--cima-navy-hover);
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.2);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* 品牌承諾頁尾 */
.brand-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
  text-align: center;
}

.brand-promise {
  color: var(--cima-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.copyright {
  color: #a0aec0;
  font-size: 11px;
  margin-top: 16px;
}
