:root {
  color-scheme: light;
  --bg: #fff8f2;
  --surface: #ffffff;
  --surface-muted: #f5e9de;
  --border: #e2cdbb;
  --text: #26352f;
  --muted: #6d625a;
  --brand: #cd5019;
  --brand-hover: #a63f13;
  --danger-bg: #fff0f0;
  --danger-border: #e5484d;
  --danger-text: #9b2025;
  --shadow: 0 1px 2px rgba(83, 50, 32, 0.06), 0 8px 24px rgba(83, 50, 32, 0.1);
  --font-sans: "Noto Sans TC", "Inter", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  min-height: 64px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
}

.brand {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.login-panel {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  margin: 1rem 0 1.75rem;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 700;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

input[type="email"]:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(205, 80, 25, 0.18);
}

.button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  margin-top: 0.5rem;
  color: #ffffff;
  background: var(--brand);
}

.button-primary:hover {
  background: var(--brand-hover);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.button-secondary:hover {
  background: var(--surface-muted);
}

.form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--danger-border);
  border-radius: 6px;
  color: var(--danger-text);
  background: var(--danger-bg);
}

.replay-section {
  display: grid;
  gap: 1.5rem;
}

.replay-heading {
  max-width: 800px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    max-width: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

