:root {
  --auth-bg: #f0f4f9;
  --auth-card: #fff;
  --auth-text: #202124;
  --auth-muted: #5f6368;
  --auth-blue: #1a73e8;
  --auth-blue-hover: #1765cc;
  --auth-error-bg: #fce8e6;
  --auth-error: #c5221f;
  --auth-radius: 28px;
  --font: 'Roboto', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-page {
  font-family: var(--font);
  background: var(--auth-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--auth-text);
}

.auth-card {
  background: var(--auth-card);
  border-radius: var(--auth-radius);
  padding: 48px 40px 36px;
  width: 100%;
  max-width: 448px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.auth-card-wide { max-width: 480px; }

.auth-brand { text-align: center; margin-bottom: 32px; }

.auth-brand-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ea4335 25%, #fbbc04 50%, #34a853 75%, #4285f4 100%);
  border-radius: 8px;
  margin-bottom: 16px;
}

.auth-brand h1 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.auth-brand p {
  color: var(--auth-muted);
  font-size: 16px;
}

.auth-error {
  background: var(--auth-error-bg);
  color: var(--auth-error);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-success {
  background: #e6f4ea;
  color: #137333;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field span {
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-field input {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 1px var(--auth-blue);
}

.auth-submit {
  margin-top: 8px;
  align-self: flex-start;
  background: var(--auth-blue);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.auth-submit:hover { background: var(--auth-blue-hover); }

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-footer a {
  color: var(--auth-blue);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover { text-decoration: underline; }
