:root {
  /* HoverSpect palette */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-red-action: #A6140F;
  --color-gold-accent: #CFB34F;
  --color-gray-neutral: #AAAAAA;
  --color-gray-background: #F8F8F8;

  /* Theme tokens */
  --bg: var(--color-gray-background);
  --panel: var(--color-white);
  --text: var(--color-black);
  --text-muted: #555555;
  --line: #E5E5E5;
  --accent: var(--color-red-action);
  --accent-2: var(--color-gold-accent);
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(207,179,79,0.10), transparent 60%),
              radial-gradient(1000px 500px at -10% 20%, rgba(166,20,15,0.06), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.45;
}

.container { max-width: 1180px; margin: 0 auto; padding: 24px; }

/* Header styles matching index */
header.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 12px;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.3px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #eee; }
.header-title { font-size: 14px; color: var(--text-muted); }
.subtle { color: var(--text-muted); font-size: 13px; }

/* Card */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* Auth layout */
.auth-container { display: grid; place-items: center; min-height: calc(100vh - 120px); }
.auth-card { width: min(480px, 96%); }

/* Form controls */
label { display: block; margin: 0 0 6px; color: var(--text-muted); font-size: 14px; }
input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--color-white);
  color: var(--text);
  outline: none;
  margin: 0 0 14px;
}
input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(207,179,79,0.22); }

.button {
  appearance: none;
  border: none;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.button:hover { filter: brightness(1.04); }

.error { color: var(--accent); margin-top: 8px; }
