:root {
  color-scheme: light;
  --bg: #eef3f8;
  --panel: #ffffff;
  --line: #d8e0eb;
  --text: #111827;
  --muted: #667085;
  --ink: #0f172a;
  --primary: #1769e0;
  --primary-strong: #0f55bb;
  --danger: #b42318;
  --focus: rgba(23, 105, 224, .16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(238, 243, 248, .96)),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

main {
  width: min(430px, calc(100vw - 32px));
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(216, 224, 235, .95);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .18);
  padding: 34px;
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 850;
}

h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

input {
  height: 43px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

button {
  height: 43px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: var(--primary-strong);
}

.error {
  padding: 10px 12px;
  border: 1px solid #f2b8b5;
  border-radius: 8px;
  color: var(--danger);
  background: #fff5f5;
  font-size: 13px;
}

@media (max-width: 520px) {
  main {
    padding: 24px;
  }
}
