@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap");

:root {
  color-scheme: light;
  color: #0f172a;
  background: #ffffff;
  font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #ffffff;
}

.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 28px;
  padding: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgb(15 23 42 / 7%);
}

.wordmark {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
}

.wordmark-symbol {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #297aa9;
}

.wordmark-symbol i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f37547;
}

.eyebrow {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

.intro {
  margin: 10px 0 0;
  color: #64748b;
}

form,
label {
  display: grid;
}

form {
  gap: 20px;
}

label {
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: inherit;
  background: white;
  font: inherit;
}

input:focus {
  outline: 3px solid rgb(41 122 169 / 24%);
  border-color: #297aa9;
}

button {
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #297aa9;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease;
}

button:hover:not(:disabled) {
  background: #1e6a96;
}

button:active:not(:disabled) {
  background: #185a80;
}

button:focus-visible {
  outline: 3px solid rgb(41 122 169 / 24%);
  outline-offset: 2px;
}

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

.login-error {
  min-height: 20px;
  margin: -5px 0;
  color: #dc2626;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 0;
  }

  .login-card {
    min-height: 100vh;
    padding: 32px 24px;
    border: 0;
    border-radius: 0;
  }
}
