:root {
  color-scheme: light;
  --bg: #eef3f7;
  --panel: #ffffff;
  --ink: #142033;
  --muted: #64748b;
  --line: #d8e0ea;
  --brand: #0072bc;
  --brand-deep: #004b8d;
  --danger: #b42318;
  --success: #067647;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(0, 114, 188, 0.10), transparent 36%),
    linear-gradient(320deg, rgba(18, 123, 88, 0.10), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.panel {
  width: min(100%, 430px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.14);
}

button {
  height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--brand-deep);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.message {
  min-height: 22px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.message[data-state="success"] {
  color: var(--success);
}

.message[data-state="error"] {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .page {
    align-items: start;
    padding-top: 20px;
  }

  .panel {
    padding: 26px 20px;
  }

  h1 {
    font-size: 23px;
  }
}
