:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #242424;
  background: #f5f5f3;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
}

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

.entry-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.entry-button {
  display: inline-flex;
  min-width: 155px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 13px 20px;
  border: 1px solid #242424;
  border-radius: 0;
  font: 400 13px/1.5 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.entry-button-primary {
  color: #f5f5f3;
  background: #242424;
}

.entry-button-primary:hover {
  border-color: #414141;
  background: #414141;
}

.entry-button-secondary {
  color: #242424;
  background: transparent;
}

.entry-button-secondary:hover {
  background: #e7e7e5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #242424;
  outline-offset: 4px;
}

.login-panel {
  width: min(100%, 350px);
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #666;
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover {
  color: #242424;
  text-decoration: underline;
}

.login-panel h1 {
  margin: 18px 0 8px;
  font: 400 46px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -1.5px;
}

.login-intro {
  margin: 0 0 28px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-form label {
  font-size: 12px;
}

.login-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #bcbcbc;
  border-radius: 0;
  color: #242424;
  background: transparent;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}

.login-form .entry-button {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.form-error {
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 2px solid #242424;
  font-size: 13px;
  line-height: 1.6;
}

.registration-link,
.field-hint {
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

.registration-link {
  margin: 24px 0 0;
}

.registration-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #242424;
  text-underline-offset: 3px;
}

.login-panel h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .entry-actions {
    width: min(100%, 240px);
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-button {
    transition: none;
  }
}
