/* Trang đăng nhập member (/login.html) — giao diện sáng, đồng bộ với /admin */
:root {
  --l-bg: #f7f6f3;
  --l-surface: #ffffff;
  --l-line: #e7e5e0;
  --l-line-soft: #efede9;
  --l-text: #1f1f1f;
  --l-sub: #6b6b6b;
  --l-faint: #9a9893;
  --l-brand: #8b1a2e;
  --l-brand-hover: #72101f;
  --l-brand-soft: #fbe9ec;
  --l-red: #dc2626;
  --l-font: 'Be Vietnam Pro', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--l-bg);
  color: var(--l-text);
  font-family: var(--l-font);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .04);
}

.auth-logo {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 24px; /* căn giữa thẻ đăng nhập */
}

.auth-brand {
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 4px;
}

.auth-sub {
  color: var(--l-sub);
  font-size: 14px;
  margin: 0 0 24px;
}

.auth-field {
  display: block;
  margin-bottom: 14px;
}

.auth-field > span {
  display: block;
  font-size: 13px;
  color: var(--l-sub);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--l-line);
  background: var(--l-surface);
  color: var(--l-text);
  font: inherit;
  font-size: 15px;
}

.auth-input::placeholder {
  color: var(--l-faint);
}

.auth-input:focus {
  outline: none;
  border-color: var(--l-brand);
  box-shadow: 0 0 0 3px var(--l-brand-soft);
}

/* Ô mật khẩu có nút ẩn/hiện bên phải */
.auth-pw {
  position: relative;
  display: block;
}

.auth-pw .auth-input {
  padding-right: 44px;
}

.auth-pw-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--l-sub);
  cursor: pointer;
}

.auth-pw-btn:hover {
  background: var(--l-line-soft);
  color: var(--l-text);
}

.auth-pw-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-submit {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: var(--l-brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.auth-submit:hover {
  background: var(--l-brand-hover);
}

.auth-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.auth-error {
  color: var(--l-red);
  font-size: 13px;
  min-height: 20px;
  margin: 4px 0 12px;
}

.auth-note {
  color: var(--l-sub);
  font-size: 13px;
  margin: 20px 0 0;
  text-align: center;
}
