.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  font-family: var(--ui-font);
  color: #0f172a;
  font-size: 16px;
  letter-spacing: normal;
}
.auth-card {
  display: flex;
  width: 100%;
  max-width: 1024px;
  min-height: 600px;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
}
.auth-form-panel {
  width: 50%;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-logo {
  display: block;
  width: fit-content;
  margin-bottom: 40px;
}
.auth-logo img {
  display: block;
  height: 128px;
  width: auto;
  object-fit: contain;
}
.auth-page .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.auth-page .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}
.auth-page .field > span {
  color: inherit;
  font-size: 14px;
}
.auth-input {
  display: block;
  position: relative;
}
.auth-page .field input {
  width: 100%;
  min-height: 54px;
  padding: 14px 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 16px;
  font-weight: 400;
}
.auth-page input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.auth-page input:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 1px;
}
.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #94a3b8;
  padding: 4px;
  display: grid;
  place-items: center;
}
.auth-password-toggle svg {
  width: 19px;
  height: 19px;
}
.auth-forgot {
  display: block;
  text-align: right;
  margin-top: -16px;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
}
.auth-page .form-submit {
  width: 100%;
  min-height: 56px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: #171717;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 10%),
    0 4px 6px -4px rgb(0 0 0 / 10%);
}
.auth-page .form-submit:hover {
  background: #2b2b2b;
}
.auth-footer {
  margin-top: 32px;
  text-align: center;
  color: #64748b;
}
.auth-footer a {
  color: #0f172a;
  font-weight: 700;
}
.auth-page a:hover {
  text-decoration: underline;
}
.auth-page .form-feedback {
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}
.auth-story {
  position: relative;
  width: 50%;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.auth-background,
.auth-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.auth-background {
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: normal;
}
.auth-shade {
  background: linear-gradient(
    to top,
    #0f172a,
    rgb(15 23 42 / 80%),
    rgb(15 23 42 / 40%)
  );
}
.auth-story-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  color: #fff;
}
.auth-quote {
  width: 64px;
  height: 64px;
  margin-bottom: 32px;
  box-shadow: 0 10px 15px -3px rgb(30 58 138 / 50%);
}
.auth-story h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: normal;
}
.auth-story p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.625;
  margin-bottom: 32px;
}
.auth-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}
.auth-avatars {
  display: flex;
  flex-shrink: 0;
}
.auth-avatars span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #0f172a;
  background: #334155;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.auth-avatars span + span {
  margin-left: -8px;
  background: #475569;
}
.auth-avatars span:last-child {
  background: transparent;
}
.auth-card-compact {
  max-width: 448px;
  min-height: 0;
}
.auth-card-compact .auth-form-panel {
  width: 100%;
  padding: 48px;
}
.auth-card-compact .auth-logo {
  margin: 0 auto 32px;
}
.auth-card-compact .auth-logo img {
  height: 96px;
}
.auth-card-compact h1 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.auth-description {
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 32px;
}
.auth-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .auth-form-panel {
    padding: 48px;
  }
}
@media (max-width: 767px) {
  .auth-card {
    max-width: 448px;
    min-height: 0;
  }
  .auth-form-panel,
  .auth-card-compact .auth-form-panel {
    width: 100%;
    padding: 32px;
  }
  .auth-story {
    display: none;
  }
}
