:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #e6e6e3;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2D6A4F;
  --accent-hover: #214f3a;
  --error: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}

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

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.brand-tag {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  text-align: center;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 24px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.12);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  margin-top: 6px;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-google {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-google:hover { background: #fafafa; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.forgot {
  text-align: right;
  margin: -6px 0 8px;
  font-size: 13px;
}
.forgot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.forgot a:hover { text-decoration: underline; }

.alt {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 22px 0 0;
}

.alt a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.alt a:hover { text-decoration: underline; }

.message {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: none;
}

.message.show { display: block; }

.message.error {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f5c6c2;
}

.message.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.terms {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}
