:root {
  --bg: #f4f5f7;
  --list-bg: #ebecf0;
  --card-bg: #fff;
  --text: #010101;
  --muted: #5e6c84;
  --accent: #e50c7e;
  --accent-dark: #b30a63;
  --danger: #eb5a46;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  width: 100%;
  max-width: 360px;
}

.auth-card h1 { font-size: 20px; margin: 0 0 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  font-size: 14px;
}

button.primary {
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
button.primary:hover { background: var(--accent-dark); }

.brand-logo { display: block; height: 32px; width: auto; }
.auth-card .brand-logo { height: 28px; margin: 0 auto 20px; }

.error-message {
  background: #ffebe6;
  color: var(--danger);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.hint-link { font-size: 13px; margin-top: 14px; text-align: center; }
.hint-link a { color: var(--accent); }

.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #dfe1e6; }

button.google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  color: var(--text);
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
button.google:hover { background: #f4f5f7; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #dfe1e6;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right a { color: var(--muted); text-decoration: none; font-size: 13px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; z-index: 10;
}
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; padding: 24px; border-radius: 8px; width: 360px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.muted { color: var(--muted); font-size: 13px; }
