:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, .76);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, .16);
  --accent: #007aff;
  --error: #ff3b30;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(245,245,247,.96) 48%),
    var(--bg);
  color: var(--ink);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
  backdrop-filter: blur(22px) saturate(1.2);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #2da2ff, var(--accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 122, 255, .22);
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 760;
}

p {
  color: var(--muted);
  margin-top: 5px;
}

.login-form {
  display: grid;
  gap: 16px;
}

label span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .84);
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

input:focus-visible {
  outline: 4px solid rgba(0, 122, 255, .18);
  outline-offset: 2px;
  border-color: rgba(0, 122, 255, .52);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(0, 122, 255, .20);
  transition: transform .16s ease, box-shadow .16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 122, 255, .24);
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

.error {
  color: #d70015;
  background: rgba(255, 59, 48, .10);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 16px;
  }

  .login-panel {
    padding: 22px;
  }
}
