:root {
  color-scheme: light;
  font: 16px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #202923;
  background: #34494b;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, #33474bf5 5%, #35494cd9 26%, #3d514f4d 75%, #2637399c), url('/assets/clouds.jpg') center 55% / cover;
}
section {
  width: min(100%, 400px);
  padding: clamp(26px, 6vw, 40px);
  background: #f6f5ed;
  border-radius: 18px;
  box-shadow: 0 16px 56px #17272733;
}
.logo { display: block; height: auto; }
h1 { margin: 28px 0 24px; font-size: 34px; line-height: 1.1; letter-spacing: -.055em; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label[for=password] { margin-top: 18px; }
input, button { font: inherit; }
input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #8f9d92;
  border-radius: 8px;
  background: #fffef8;
  color: inherit;
}
:focus-visible { outline: 2px solid #405d60; outline-offset: 2px; }
.password { position: relative; }
.password input { padding-right: 48px; }
button { cursor: pointer; }
.reveal {
  position: absolute;
  right: 3px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  color: #4e5d54;
  border: 0;
  border-radius: 6px;
}
.reveal:hover { background: #ebebeb; }
.password:has(input[type=password]) .slash { display: none; }
#error { color: #932e24; font-size: 14px; margin: 14px 0 0; }
#error:empty { margin: 0; }
.submit {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  background: #293c33;
  color: #fffef8;
  font-weight: 650;
  border: 0;
  border-radius: 8px;
}
.submit:hover { background: #394f43; }
.submit:disabled { opacity: .75; cursor: wait; }
