:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #172033;
  background: #f4f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.login-form {
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(20, 31, 51, 0.08);
}

.login-field {
  display: grid;
  gap: 6px;
  color: #44546a;
  font-size: 14px;
  font-weight: 650;
}

.login-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bac4d4;
  border-radius: 7px;
  padding: 0 12px;
  color: #172033;
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.login-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.remember-row {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #263448;
  font-size: 14px;
  font-weight: 650;
}

.remember-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2563eb;
}

.login-error {
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 10px 12px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.login-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #1d4ed8;
  border-radius: 7px;
  color: #ffffff;
  background: #2563eb;
  font: inherit;
  font-size: 16px;
  font-weight: 760;
  cursor: pointer;
}

.login-button:hover {
  background: #1d4ed8;
}

.login-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

@media (min-width: 760px) {
  .auth-page {
    padding: 32px;
  }

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