@import './login-headlines.css';

:root {
  background: #fafaf8;
}
body {
  padding: 0;
  background: #fafaf8;
  color: #171d2c;
  font-family: MiSans, sans-serif;
}
.auth-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-width: 1440px;
  height: 100dvh;
  min-height: 0;
  margin-inline: auto;
  padding: 0 80px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-page .header {
  padding-block: 24px;
  border: 0;
  justify-content: flex-end;
}
.auth-page .header > a:last-child {
  color: #697182;
  font-size: 14px;
  text-decoration: none;
}
.brand-name {
  font-family: MiSans, sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0;
}
.auth-main {
  grid-template-columns: minmax(0, 550px) minmax(0, 440px);
  gap: 130px;
  min-height: 0;
  margin-block: 0;
  padding-block: clamp(12px, 4dvh, 40px);
  align-items: safe center;
  overflow-y: auto;
}
.auth-intro {
  position: relative;
  isolation: isolate;
  padding-top: 24px;
}
.auth-intro::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 60px -30px -30px -60px;
  background: url('/assets/hero-star.svg') center / contain no-repeat;
  opacity: 0.65;
}
.auth-intro h1 {
  font-size: clamp(36px, 3.65vw, 52px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.auth-intro .eyebrow {
  color: #008f9d;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 28px;
}
.auth-intro .intro {
  margin-top: 28px;
  color: #697182;
  line-height: 1.6;
  font-size: 17px;
}
.auth-card {
  background: #fff;
  border: 1px solid #e1e8eb;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 80px #254c5d08;
}
.auth-lockup {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.auth-lockup img {
  object-fit: contain;
}
.auth-card h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}
.auth-description {
  text-align: center;
  color: #697182;
  font-size: 14px;
}
.auth-message:empty {
  display: none;
}
.auth-primary {
  background: #1f1f23;
  color: white;
  border-radius: 12px;
  min-height: 48px;
  transition: background 0.15s;
}
.auth-primary:hover:not(:disabled) {
  background: #3c3c40;
}
.auth-mates {
  position: relative;
  width: 100%;
  max-width: 510px;
  aspect-ratio: 510 / 270;
  margin-top: 24px;
}
.auth-mates img {
  position: absolute;
  height: auto;
  object-fit: contain;
}
.auth-mates img:first-child {
  width: 33.333%;
  left: 9.804%;
  top: 31.481%;
}
.auth-mates img:nth-child(2) {
  width: 45.882%;
  left: 38.824%;
  top: 5.185%;
}
.auth-page .footer {
  border: 0;
  color: #82909b;
  padding-block: 20px;
}
@media (max-width: 1100px) {
  .auth-page {
    padding-inline: 40px;
  }
  .auth-main {
    gap: 48px;
  }
}
@media (max-width: 760px) {
  .auth-page {
    padding-inline: 20px;
  }
  .auth-main {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    padding-block: 16px;
  }
  .auth-intro {
    display: none;
  }
  .auth-card {
    padding: 28px 24px;
    border-radius: 22px;
  }
  .auth-card h2 {
    font-size: 25px;
  }
  .auth-page .footer {
    font-size: 11px;
  }
}
@media (max-height: 760px) {
  .auth-page .header,
  .auth-page .footer {
    padding-block: 12px;
  }
  .auth-main {
    padding-block: 12px;
  }
  .auth-intro {
    padding-top: 0;
  }
  .auth-mates {
    max-width: 360px;
  }
  .auth-card {
    padding: 20px;
  }
  .auth-lockup {
    gap: 4px;
    margin-bottom: 16px;
  }
  .auth-lockup img {
    width: 48px;
    height: 48px;
  }
  .auth-lockup .brand-name,
  .auth-card h2 {
    font-size: 22px;
  }
}
@media (max-height: 600px) {
  .auth-main {
    padding-block: 8px;
  }
  .auth-card {
    padding: 12px;
  }
  .auth-lockup {
    margin-bottom: 8px;
  }
  .auth-card form {
    gap: 8px;
  }
  .auth-description {
    margin-block: 8px;
  }
  .auth-card .auth-consent {
    margin-block: 4px;
  }
  .account-link {
    margin-top: 12px;
  }
}
