@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: #262a3e;
  background: #f4f6fa;
  font-synthesis: none;
  --bg: #f4f6fa;
  --surface: #fff;
  --ink: #262a3e;
  --muted: #69758b;
  --line: #e3e7ef;
  --accent: #f58232;
  --accent-soft: #fff1e5;
  --navy: #151725;
  --shadow: 0 8px 32px #19284207;
  --blue: #4269b7;
  --blue-soft: #eef3fd;
  --green: #17825e;
  --danger: #b73e4e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
input,
select,
textarea {
  min-width: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  width: 100%;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #f5823218;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: var(--accent);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.9px;
  line-height: 1.25;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
}
.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 18px;
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.button.primary {
  background: linear-gradient(105deg, #ff9a47, #ed6f24);
  color: #191c2b;
  border: 0;
  box-shadow: 0 7px 20px #f5823220;
}
.button:hover {
  filter: brightness(0.97);
}
.button.danger {
  color: var(--danger);
}
.wide {
  width: 100%;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.login-story {
  background:
    radial-gradient(ellipse at 0 0, #f5823225, transparent 53%),
    radial-gradient(ellipse at 100% 100%, #157cad20, transparent 53%), #171a29;
  color: #fff;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 800;
  white-space: nowrap;
}
.brand b {
  color: var(--accent);
}
.brand-mark {
  background: var(--accent);
  color: #171a29;
  border-radius: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 32px;
  line-height: 1;
}
.story-body {
  margin: auto 0;
  padding: 70px 0;
}
.story-body h1 {
  font-size: clamp(44px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2.3px;
  margin: 20px 0 25px;
}
.story-body > p:not(.eyebrow) {
  color: #b2bacb;
  font-size: 16px;
  max-width: 440px;
}
.story-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.story-features span {
  font-size: 12px;
  padding: 7px 10px;
  border: 1px solid #ffffff22;
  border-radius: 7px;
  color: #b8c2d8;
}
.story-foot {
  font-size: 12px;
  color: #8792aa;
}
.login-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 70px 40px;
}
.theme-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
}
.login-main > .theme-button {
  position: absolute;
  right: 24px;
  top: 22px;
}
.login-form {
  width: min(100%, 420px);
}
.login-form h2 {
  font-size: 40px;
  margin: 17px 0 14px;
  letter-spacing: -1.5px;
}
.login-form > .muted {
  margin-bottom: 30px;
}
.login-form > label {
  margin: 20px 0;
  font-weight: 600;
  color: var(--muted);
}
.login-form input {
  min-height: 56px;
  box-shadow: 0 4px 14px #26374705;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 50px;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  background: none;
  border: 0;
  color: var(--muted);
  width: 44px;
  height: 44px;
  font-size: 20px;
}
.login-form > .button {
  margin-top: 16px;
  min-height: 50px;
}
.form-status {
  font-size: 14px;
  min-height: 24px;
  color: var(--danger);
  margin-top: 12px;
}
.login-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.login-help {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  padding: 28px;
  width: min(720px, calc(100vw - 30px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 24px 80px #0003;
}
dialog::backdrop {
  background: #0f142680;
  backdrop-filter: blur(3px);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: var(--navy);
  color: white;
  box-shadow: 0 8px 30px #0003;
  border-radius: 10px;
  max-width: calc(100% - 30px);
  z-index: 100;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
body.dark {
  --bg: #0f111a;
  --surface: #181c2a;
  --ink: #f3f5fa;
  --muted: #aeb8cb;
  --line: #30384d;
  --accent: #ff984a;
  --accent-soft: #382b23;
  --blue: #93b4fc;
  --blue-soft: #233351;
  --green: #75d9b3;
  --danger: #ffacb6;
  background: var(--bg);
  color: var(--ink);
}
@media (max-width: 1000px) {
  .login-story {
    padding: 35px;
  }
  .story-body h1 {
    font-size: 49px;
  }
  .login-main {
    padding: 75px 28px;
  }
  .login-form h2 {
    font-size: 34px;
  }
}
@media (max-width: 720px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 25px;
  }
  .story-body {
    padding: 34px 0 10px;
  }
  .story-body h1 {
    font-size: 35px;
    letter-spacing: -1.3px;
  }
  .story-body h1 br {
    display: none;
  }
  .story-body h1 br:after {
    content: " ";
  }
  .story-body .eyebrow,
  .story-features,
  .story-foot {
    display: none;
  }
  .story-body > p:not(.eyebrow) {
    font-size: 14px;
  }
  .login-main {
    padding: 90px 25px 40px;
  }
  .login-form {
    max-width: 440px;
  }
  .login-form h2 {
    font-size: 31px;
  }
  .brand {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
