:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f5f7;
}

.login-ambient { display: none; }

.login-card {
  width: min(100%, 460px);
  padding: 40px;
  border: 1px solid #e5e5ea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(29, 29, 31, .07);
}

.brand-logo { display: block; width: 116px; height: auto; }

.eyebrow {
  margin: 28px 0 8px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: 29px;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -.65px;
}

.intro { margin: 12px 0 26px; color: #6e6e73; font-size: 15px; line-height: 1.5; }

form { display: grid; gap: 17px; }

label { display: grid; gap: 8px; color: #424245; font-size: 14px; font-weight: 600; }

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  color: #1d1d1f;
  background: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); }

button {
  height: 48px;
  margin-top: 2px;
  border: 1px solid #0071e3;
  border-radius: 12px;
  color: #fff;
  background: #0071e3;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

button:hover { border-color: #0077ed; background: #0077ed; }

.login-error {
  margin: 15px 0 0;
  padding: 12px 14px;
  border: 1px solid #f4c7cc;
  border-radius: 12px;
  color: #9d1827;
  background: #fff2f4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.note { margin: 20px 0 0; color: #6e6e73; font-size: 12px; line-height: 1.5; text-align: center; }

@media (max-width: 480px) {
  body { padding: 16px; }
  .login-card { padding: 32px 24px; border-radius: 20px; }
  h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
