@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
.auth-body {
  --font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --canvas: #f8fafc;
  --surface: #fff;
  --text: #152139;
  --muted: #73839c;
  --border: #dfe6f1;
  --brand: #8900d6;
  --brand-soft: #f2e7fc;
  background: var(--canvas);
  font-family: var(--font-family);
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  padding: 24px;
  gap: 24px;
}
.auth-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 48px);
  border-radius: 24px;
  background: #29183f;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  color: #fff;
}
.auth-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
  z-index: -2;
}
.auth-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #241334a6, #24133426 30%, #29183fd9 70%, #29183f);
  z-index: -1;
}
.auth-story .brand {
  font-size: 23px;
}
.auth-story .brand small {
  color: #e3cff4;
  font-size: 9px;
  letter-spacing: 1.8px;
}
.story-content {
  margin-top: auto;
  padding: 150px 0 36px;
  max-width: 490px;
}
.story-content .eyebrow {
  color: #e1bdff;
  font-size: 10px;
  letter-spacing: 1.7px;
}
.story-content h1 {
  font-size: clamp(32px, 3.3vw, 48px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 20px 0;
}
.story-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #e6ddec;
  max-width: 350px;
}
.story-line {
  width: 44px;
  height: 3px;
  border-radius: 4px;
  background: #c777ff;
  margin: 26px 0 20px;
}
.story-caption {
  font-size: 12px;
  color: #e6ddec;
}
.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #d8c8e5;
}
.story-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(20px, 4vw, 56px);
  background: radial-gradient(ellipse at 50% 15%, #f1e7fc 0, transparent 65%);
}
.login-card {
  width: 100%;
  max-width: 460px;
  padding: 36px;
  margin: auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 40px #19264108;
}
.login-emblem {
  display: inline-flex;
  padding: 8px;
  margin-bottom: 24px;
  background: var(--brand-soft);
  border-radius: 17px;
}
.login-emblem img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.login-card .eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.3px;
  color: var(--brand);
}
.login-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 10px 0;
}
.login-card > .muted {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 18px 0 8px;
}
.login-card input:not([type='hidden']) {
  display: block;
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s;
}
.login-card input::placeholder {
  color: var(--muted);
}
.login-card input:hover {
  border-color: #bb9ed5;
}
.login-card input:focus-visible {
  border-color: var(--brand);
  outline: 3px solid #8900d61a;
  outline-offset: 2px;
}
.password-field {
  position: relative;
}
.password-field #password {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
}
.password-toggle[hidden],
.password-toggle .eye-closed,
.password-toggle[aria-pressed='true'] .eye-open {
  display: none;
}
.password-toggle[aria-pressed='true'] .eye-closed {
  display: block;
}
.password-toggle:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.login-card .button.primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px #8900d61a;
}
.login-card .button.primary:hover {
  background: #7100b5;
  border-color: #7100b5;
}
.login-card .alert {
  margin-top: 20px;
  border-radius: 10px;
  font-size: 12px;
}
.login-note {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 24px 0 0;
  text-align: center;
}
.login-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin: 28px 0 0;
  text-align: center;
}
.login-credit a {
  color: var(--brand);
  font-weight: 500;
}
.footer-heart {
  display: inline-flex;
  color: #e11d48;
}
.footer-heart svg {
  display: block;
  width: 12px;
  height: 12px;
}
@media (max-width: 1000px) {
  .auth-shell {
    padding: 16px;
    gap: 16px;
  }
  .auth-story {
    padding: 28px;
    min-height: calc(100svh - 32px);
  }
  .auth-form-panel {
    padding: 20px;
  }
  .login-card {
    padding: 28px;
  }
}
@media (max-width: 720px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
  .auth-story {
    min-height: 220px;
    padding: 24px;
    border-radius: 20px;
  }
  .auth-story .brand {
    font-size: 20px;
  }
  .story-content {
    padding: 36px 0 0;
  }
  .story-content h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
    margin: 0;
  }
  .story-content p,
  .story-caption,
  .story-line,
  .story-content .eyebrow,
  .story-footer {
    display: none;
  }
  .auth-photo {
    object-position: center 35%;
  }
  .auth-form-panel {
    padding: 0;
  }
  .login-card {
    max-width: 460px;
    padding: 24px;
    border-radius: 20px;
  }
  .login-emblem {
    display: none;
  }
  .login-card h2 {
    font-size: 26px;
  }
  .login-credit {
    font-size: 10px;
    margin: 22px 0 8px;
  }
}
