@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #087FD6;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: #111827;
  background: linear-gradient(155deg, #12C6DE 0%, #087FD6 100%);
  font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.login-card {
  width: min(100%, 410px);
  display: grid;
  gap: 26px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(3, 51, 89, .25);
}

.login-logo {
  width: 142px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.login-copy {
  text-align: center;
}

.login-copy h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.login-copy p {
  margin: 10px 0 0;
  color: #6B7280;
  font-size: 15px;
}

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

.login-form label {
  color: #343434;
  font-size: 14px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #C2C2C2;
  border-radius: 9px;
  outline: 0;
  color: #2C2C2B;
  background: #EAE8E6;
  font-size: 18px;
}

.login-form input:focus {
  border-color: #4A9EF4;
  box-shadow: 0 0 0 3px rgba(74, 158, 244, .18);
}

.login-form input[aria-invalid="true"] {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .13);
}

.login-error {
  margin: 0;
  color: #B91C1C;
  font-size: 13px;
  font-weight: 700;
}

.login-submit {
  min-height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 9px;
  color: #343434;
  background: #BFEAF3;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.login-submit:hover {
  background: #A9DFEB;
}

.login-submit:active {
  transform: translateY(1px);
}

.login-submit:focus-visible {
  outline: 3px solid rgba(74, 158, 244, .38);
  outline-offset: 3px;
}

.login-submit:disabled {
  cursor: wait;
  opacity: .68;
}

@media (max-width: 480px) {
  .login-shell {
    align-items: center;
    padding-right: 16px;
    padding-left: 16px;
  }

  .login-card {
    gap: 22px;
    padding: 28px 22px;
    border-radius: 16px;
  }

  .login-logo {
    width: 128px;
  }

  .login-copy h1 {
    font-size: 27px;
  }
}

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