/* /reward/style/style_front.css */
:root {
  --red: #c92a2a;
  --red-dk: #a82323;
  --orange: #e67700;
  --gold: #f5a623;
  --black: #1a1a1a;
  --white: #fefcf9;
  --soft: #f8f4f0;
  --line: #e8e2dc;
  --muted: #6b6258;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
  background: #f4f2f0;
  color: var(--black);
  padding: 24px;
  min-height: 100vh;
}
.bg-container {
  max-width: 960px;
  margin: 0 auto;
}

.bg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--red);
  margin-bottom: 28px;
}
.bg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.bg-brand img {
  height: 52px;
  width: auto;
  display: block;
}
.bg-brand span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.bg-brand .red {
  color: var(--red);
}
.bg-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.bg-user {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bg-user i {
  color: var(--red);
}

.bg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.bg-btn--primary {
  background: var(--red);
  color: #fff;
}
.bg-btn--primary:hover {
  background: var(--red-dk);
}
.bg-btn--ghost {
  background: #fff;
  color: var(--black);
  border: 1px solid var(--line);
  font-size: small;
  padding: 5px 10px;
}
.bg-btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.bg-main {
  min-height: 60vh;
}

.bg-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}
.bg-card--wide {
  max-width: 640px;
}
.bg-card h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.bg-card h1 i {
  color: var(--red);
  margin-right: 6px;
}
.bg-card .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.bg-field {
  margin-bottom: 16px;
}
.bg-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.bg-field input[type="text"],
.bg-field input[type="email"],
.bg-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background-color 0.15s;
}
.bg-field input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.12);
}
.bg-field .hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.bg-btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 10px;
  margin-top: 6px;
  cursor: pointer;
}
.bg-btn-submit:hover {
  background: var(--red-dk);
}

.bg-alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.bg-alert--error {
  background: #fdecea;
  color: #b71c1c;
}
.bg-alert--success {
  background: #e8f5e9;
  color: #1b5e20;
}
.bg-alert--info {
  background: #fff8e1;
  color: #7f5f00;
}

.bg-links {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.bg-links a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.bg-links a:hover {
  text-decoration: underline;
}

.bg-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }
  .bg-brand span {
    font-size: 20px;
  }
  .bg-card {
    padding: 22px 18px;
  }
}

/* 冬日暖暖火鍋節 event banner */
.bg-event-banner {
  margin: 0 0 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.bg-event-banner a {
  display: block;
  line-height: 0;
}
.bg-event-banner img {
  width: 100%;
  height: auto;
  display: block;
  /* show full image, no crop */
}
