:root {
  --bg: #0f172a;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-ink: #ffffff;
  --error: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 50% -10%, #1e293b, var(--bg));
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

h1 {
  margin: 0 0 20px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 16px 0 6px;
}

input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}
input[type="email"]:focus { border-color: var(--primary); }

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  transition: transform 0.04s ease, background 0.15s ease;
}
button:active { transform: translateY(1px); }

button.primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
button.secondary:hover { background: #f8fafc; }

button.sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
button:disabled { opacity: 0.55; cursor: not-allowed; }

.ms-logo {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(to right, #f25022 50%, #7fba00 50%) top / 100% 50% no-repeat,
    linear-gradient(to right, #00a4ef 50%, #ffb900 50%) bottom / 100% 50% no-repeat;
  border-radius: 2px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider span { padding: 0 12px; }

.error {
  color: var(--error);
  font-size: 14px;
  margin: 16px 0 0;
}

.hello { font-size: 20px; margin: 0 0 4px; }
#signed-in button { margin-top: 20px; }
