* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #1f2933;
  background: #f7f8fa;
}

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

.card {
  width: min(100%, 420px);
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
}

.brand {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.2;
}

p {
  margin: 0 0 14px;
  color: #52606d;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: #1f2933;
  color-scheme: light;
  border: 1px solid #cbd2d9;
  border-radius: 12px;
  background: #ffffff;
}

input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: #0f766e;
}

button {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: #0f766e;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

button:hover {
  background: #115e59;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:disabled:hover {
  background: #0f766e;
}

.status-message {
  min-height: 1.4em;
  margin-top: 16px;
  color: #52606d;
}

.error-message {
  color: #b42318;
}

.success-message {
  color: #0f766e;
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding:
      calc(env(safe-area-inset-top, 0px) + 84px)
      16px
      env(safe-area-inset-bottom, 0px);
  }

  .card {
    padding: 24px;
  }
}

