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

:root {
  --bg: #e9ebee;
  --surface: #ffffff;
  --ink: #121419;
  --text: #1b1e24;
  --muted: #6c7280;
  --line: #e6e8ec;
  --blue: #2d68ff;
  --blue-hover: #1f55e0;
  --blue-soft: #e8eeff;
  --red: #e5484d;
  --red-soft: #fde8e8;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(18,20,25,0.04), 0 16px 48px rgba(18,20,25,0.08);
  padding: 36px 34px;
  width: min(380px, 100%);
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #7aa0ff);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
.muted { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

form { display: flex; flex-direction: column; gap: 16px; }
label { font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
input {
  background: var(--surface); border: 1px solid #d8dbe1; border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); outline: none; }

button {
  margin-top: 6px;
  background: var(--blue); color: #fff; border: none; border-radius: 999px;
  padding: 12px 16px; font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background 0.12s;
}
button:hover:not(:disabled) { background: var(--blue-hover); }
button:disabled { opacity: 0.6; cursor: default; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.err {
  color: var(--red); background: var(--red-soft);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d3d7de;
  border-radius: 12px;
  background: #fff;
  color: #1c2130;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.google-btn:hover { background: #f6f7f9; }
.google-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9aa1ad;
  font-size: 13px;
  margin: 16px 0 4px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e7ec;
}
