@font-face {
  font-family: Pangram;
  src: url('/brand/pangram-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Pangram;
  src: url('/brand/pangram-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--theme-canvas, #f5f7f7);
  color: var(--theme-text, #173d4b);
  font-family: Pangram, Arial, sans-serif;
  font-weight: 300;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
:focus-visible {
  outline: 3px solid #19b5a6;
  outline-offset: 4px;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 44%) 1fr;
}
.login-intro {
  background: #1d4757;
  color: white;
  padding: 52px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 180px;
}
.brand img:first-child {
  width: 37px;
}
.brand img:last-child {
  width: 130px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  margin: 0 0 22px;
}
.login-intro .eyebrow {
  color: #70e6d9;
}
.login-intro > div {
  margin: auto 0;
}
.login-intro h1 {
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0;
  font-weight: 600;
}
.content-footer {
  font-size: 12px;
  color: var(--theme-muted, #a6c0ca);
}
.login-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  position: relative;
}
.login-content form {
  width: 100%;
  max-width: 370px;
}
.login-content .eyebrow {
  color: var(--theme-muted, #64818a);
  margin-bottom: 18px;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
  font-weight: 600;
}
.description {
  color: var(--theme-muted, #5d7680);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 36px;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin: 22px 0 9px;
}
input {
  width: 100%;
  background: var(--theme-surface, white);
  border: 1px solid var(--theme-line, #cfdbde);
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--theme-text, #173d4b);
  font-size: 15px;
  height: 48px;
}
input:focus {
  border-color: #169e91;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 68px;
}
.password-field button {
  position: absolute;
  right: 9px;
  top: 8px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--theme-muted, #476771);
  padding: 0 8px;
  font-size: 12px;
}
.submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 28px;
  padding: 15px 18px;
  background: #27e2cc;
  border: 0;
  border-radius: 7px;
  color: var(--theme-text, #173d4b);
  font-weight: 600;
  font-size: 14px;
}
.submit:hover {
  background: #20d2bd;
}
.help {
  text-align: center;
  font-size: 12px;
  color: var(--theme-muted, #6b8189);
  margin: 24px 0 0;
  line-height: 1.6;
}
#login-error {
  font-size: 13px;
  line-height: 1.6;
  color: var(--theme-danger-text, #a32e36);
  background: var(--theme-danger-bg, #fff0f0);
  border-radius: 6px;
  padding: 12px;
  margin: 18px 0 0;
}
.content-footer {
  position: absolute;
  bottom: 28px;
  color: var(--theme-muted, #6b8189);
}
@media (max-width: 700px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 28px;
    gap: 28px;
  }
  .login-intro > div {
    display: none;
  }
  .brand {
    width: 150px;
  }
  .brand img:first-child {
    width: 30px;
  }
  .brand img:last-child {
    width: 106px;
  }
  .login-content {
    padding: 44px 24px 80px;
    align-items: flex-start;
  }
  .login-content h2 {
    font-size: 28px;
  }
}

.login-content > .theme-toggle {
  position: absolute;
  top: 28px;
  right: 28px;
}
:root[data-theme='dark'] .login-intro {
  background: #0c2028;
}
:root[data-theme='dark'] input {
  background: var(--theme-input);
}
:root[data-theme='dark'] .submit {
  color: #112932;
}
@media (max-width: 700px) {
  .login-content > .theme-toggle {
    top: 12px;
    right: 16px;
  }
}
