*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: #121212;
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  min-height: 100dvh;
}

[hidden] {
  display: none !important;
}

.login {
  width: min(560px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 48px;
}

h1 {
  margin: 0 0 40px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

label {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #121212;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}

input::placeholder {
  color: #b0b0b0;
}

input:focus {
  outline: none;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 1px #2b6cb0;
}

.close {
  position: fixed;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #121212;
  text-decoration: none;
}

.close svg {
  display: block;
  width: 22px;
  height: 22px;
}

.close:hover {
  color: #5a5a5a;
}

button {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 4px;
  background: #121212;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #2a2a2a;
}

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

.text-button {
  height: auto;
  margin-top: 12px;
  padding: 6px 0;
  background: transparent;
  color: #326891;
  font-size: 15px;
  text-decoration: underline;
}

.text-button:hover {
  background: transparent;
  color: #163a5f;
}

form input:not([hidden]) + label {
  margin-top: 16px;
}

.auth-summary,
.auth-error,
.field-note {
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.auth-summary,
.auth-error {
  text-align: center;
}

.auth-error {
  color: #a12525;
}

.auth-summary:empty,
.auth-error:empty {
  margin: 0;
}

.field-note {
  margin: 6px 0 0;
}

.account-details dt {
  margin-top: 16px;
  font-weight: 700;
}

.account-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.legal {
  margin: 32px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.legal a {
  color: #326891;
}

.legal a:hover {
  color: #163a5f;
}

@media (max-width: 720px) {
  .login {
    padding-top: 56px;
  }

  h1 {
    font-size: 32px;
  }
}
