@font-face {
  font-family: "Source Sans 3";
  src: url("/login-assets/source-sans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/login-assets/source-sans-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Bricolage;
  src: url("/login-assets/bricolage-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --petrol: #124c55;
  --lime: #d5f36b;
  --paper: #fafcfb;
  --muted: #41646a;
  --line: #b7cdcd;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--petrol);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

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

.login-card {
  position: relative;
  width: min(100%, 448px);
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid var(--line);
  background: #fff;
}

.login-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 76px;
  height: 6px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  content: "";
}

.login-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 0 clamp(36px, 7vh, 52px);
}

h1 {
  margin: 0;
  font-family: Bricolage, "Source Sans 3", Arial, sans-serif;
  font-size: clamp(2.25rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.login-description {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.login-error {
  margin-top: 24px;
  padding: 12px 14px;
  border-left: 4px solid #a73c2b;
  background: #fff4f1;
  color: #67251d;
  font-size: 16px;
}

.login-error:empty {
  display: none;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.login-error:not(:empty) + form {
  margin-top: 20px;
}

label {
  font-size: 17px;
  font-weight: 600;
}

input[type="password"] {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--petrol);
  border-radius: 0;
  background: var(--paper);
  color: var(--petrol);
  font: inherit;
  font-size: 17px;
}

input[type="password"]:focus-visible,
button:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 4px;
}

button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: var(--petrol);
  color: var(--lime);
  cursor: pointer;
  font: 600 18px/1.2 "Source Sans 3", Arial, sans-serif;
  text-align: center;
  touch-action: manipulation;
}

button:hover {
  background: #0d4048;
}

@media (max-width: 360px) {
  .login-shell {
    padding-inline: 12px;
  }

  .login-card {
    padding: 24px 20px;
  }
}
