.login-page {
  min-height: 100svh;
  background: var(--bone);
}

.auth-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--ink);
  background: var(--bone);
}

.auth-header__end {
  display: flex;
  align-items: center;
  gap: 28px;
}

.auth-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Chivo Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.auth-back img,
.demo-warning img,
.password-toggle img {
  display: block;
}

.auth-back:focus-visible,
.password-toggle:focus-visible,
.auth-submit:focus-visible,
.remember-control input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.login-main {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(460px, 5fr) minmax(620px, 7fr);
}

.auth-pane {
  display: flex;
  align-items: center;
  padding: 64px 56px;
  border-right: 1px solid var(--ink);
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-form-wrap h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: 0;
}

.auth-intro {
  max-width: 360px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.demo-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 34px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 12px;
  line-height: 1.45;
}

.demo-warning img {
  flex: 0 0 auto;
  margin-top: 1px;
}

.login-form {
  margin-top: 26px;
}

.auth-field + .auth-field {
  margin-top: 24px;
}

.auth-field label {
  display: block;
  font-family: "Chivo Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-field__control {
  position: relative;
  margin-top: 7px;
  border-bottom: 1px solid var(--ink);
}

.auth-field input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 400 17px/1.2 "Chivo", sans-serif;
}

.auth-field input[type="email"] {
  padding-right: 0;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bone) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-field__control:focus-within {
  border-bottom-width: 3px;
}

.auth-field:has(input[aria-invalid="true"]) .auth-field__control {
  border-bottom: 3px solid var(--coral);
}

.password-toggle {
  position: absolute;
  right: -12px;
  bottom: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.form-error {
  min-height: 42px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.form-error:not(:empty),
.form-error.is-visible {
  padding: 10px 12px;
  border-left: 4px solid var(--coral);
  background: rgba(255, 96, 77, 0.12);
}

.remember-control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  cursor: pointer;
}

.remember-control input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--cobalt);
}

.auth-submit {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 16px 24px;
  border: 0;
  border-radius: 2px;
  color: var(--bone);
  background: var(--ink);
  font: 600 13px/1 "Chivo", sans-serif;
  cursor: pointer;
}

.auth-submit::before,
.auth-submit::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 4px;
}

.auth-submit::before {
  left: 0;
  background: var(--cobalt);
}

.auth-submit::after {
  right: 0;
  background: var(--coral);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.78;
}

.auth-footnote {
  margin: 28px 0 0;
  font-family: "Chivo Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.auth-proof {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr 76px;
}

.auth-proof__leg {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}

.auth-proof__leg--a {
  color: #fff;
  background: var(--cobalt);
}

.auth-proof__leg--b {
  color: var(--ink);
  background: var(--coral);
}

.auth-proof__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid currentColor;
  font-family: "Chivo Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.auth-proof__quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-proof__quote span {
  font-size: 28px;
  font-weight: 500;
}

.auth-proof__quote strong {
  font-family: "Chivo Mono", monospace;
  font-size: 104px;
  font-weight: 500;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}

.auth-proof__coverage {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px;
  color: #fff;
  background: var(--ink);
  font-family: "Chivo Mono", monospace;
  font-size: 12px;
}

.auth-proof__coverage strong {
  font-size: 14px;
}

@media (max-width: 1100px) {
  .login-main {
    grid-template-columns: minmax(420px, 1fr) minmax(430px, 1fr);
  }

  .auth-pane {
    padding: 52px 40px;
  }

  .auth-proof__leg {
    padding: 32px 26px;
  }

  .auth-proof__quote span {
    font-size: 23px;
  }

  .auth-proof__quote strong {
    font-size: 76px;
  }
}

@media (max-width: 900px) {
  .login-main {
    grid-template-columns: 1fr;
  }

  .auth-pane {
    min-height: calc(100svh - 68px);
    padding: 54px 28px;
    border-right: 0;
  }

  .auth-proof {
    min-height: 230px;
    grid-template-rows: 1fr 64px;
    border-top: 1px solid var(--ink);
  }

  .auth-proof__leg {
    padding: 24px;
  }

  .auth-proof__quote {
    gap: 10px;
  }

  .auth-proof__quote span {
    font-size: 18px;
  }

  .auth-proof__quote strong {
    font-size: 52px;
  }

  .auth-proof__meta span:last-child {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .auth-header__end {
    gap: 18px;
  }

  .auth-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .auth-pane {
    min-height: calc(100svh - 64px);
    padding: 44px 20px;
  }

  .auth-form-wrap h1 {
    font-size: 40px;
  }

  .auth-intro {
    font-size: 16px;
  }

  .demo-warning {
    margin-top: 28px;
  }

  .auth-proof__leg {
    padding: 20px 16px;
  }

  .auth-proof__coverage {
    justify-content: center;
    padding: 18px;
  }

  .auth-proof__coverage span {
    display: none;
  }
}

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