@import "./reset.css";
@import "./tokens.css";
@import "./typography.css";
@import "../components/button/button.css";

body { min-width: 320px; min-height: 100vh; color: var(--color-text); background: #050507; }
.login-page { position: relative; display: flex; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.login-background { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--color-bg); }
.login-background__tracks { position: absolute; top: -68vh; left: -24vw; display: grid; gap: 14px; width: max-content; transform: rotate(-8deg) scale(1.12); transform-origin: center; }
.login-marquee__track { display: flex; width: max-content; animation: login-marquee 72s linear infinite; will-change: transform; }
.login-marquee__track--reverse { animation-direction: reverse; animation-duration: 84s; }
.login-marquee__track--opposite { animation-direction: reverse; }
.login-marquee__set { display: flex; flex: 0 0 auto; gap: 14px; padding-right: 14px; }
.login-marquee__item { display: block; flex: 0 0 clamp(160px, 15vw, 232px); aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid rgb(255 255 255 / 12%); border-radius: 14px; background: var(--color-card); box-shadow: 0 16px 40px rgb(0 0 0 / 42%); }
.login-marquee__item img { width: 100%; height: 100%; object-fit: cover; }
.login-background__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgb(0 0 0 / 98%) 0%, rgb(0 0 0 / 94%) 28%, rgb(0 0 0 / 76%) 54%, rgb(0 0 0 / 52%) 100%); }
.login-content { position: relative; z-index: 1; display: grid; align-content: center; width: min(100% - 48px, 470px); min-height: 100vh; min-height: 100svh; margin-inline: auto; padding: 64px 0; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; }
.login-brand .site-logo { width: auto; height: 130px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 12px rgb(255 209 102 / 42%)); }
.login-form { display: grid; gap: 12px; }
.login-form__group { display: grid; gap: 6px; }
.login-form__label { margin-left: 8px; color: rgb(255 255 255 / 72%); font-size: 14px; font-weight: 700; }
.login-form__field { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; border-radius: var(--radius-full); color: #2d2d2d; background: var(--color-white); transition: box-shadow .2s ease; }
.login-form__field:focus-within { box-shadow: 0 0 0 2px var(--color-cyan), 0 0 22px rgb(34 211 238 / 30%); }
.login-form__field > img { flex: 0 0 18px; width: 18px; height: 18px; filter: grayscale(1) brightness(.62); }
.login-form__field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; color: var(--color-login-ink); background: transparent; font-size: 15px; }
.login-form__field input::placeholder { color: #999; opacity: 1; }
.login-form__field input:autofill, .login-form__field input:-webkit-autofill { border-radius: var(--radius-full); -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset; -webkit-text-fill-color: var(--color-login-ink); caret-color: var(--color-login-ink); }
.login-form__password-toggle { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; }
.login-form__password-toggle:hover { background: rgb(124 58 237 / 14%); }
.login-form__password-toggle img { width: 18px; height: 18px; filter: grayscale(1) brightness(.62); }
.login-form__submit { width: 100%; margin-top: 8px; }
.login-form__signup { color: rgb(255 255 255 / 68%); font-size: 14px; text-align: center; }
.login-form__signup a { margin-left: 8px; color: var(--color-gold); font-weight: 700; transition: filter .2s ease; }
.login-form__signup a:hover { filter: brightness(1.15); text-decoration: underline; }
.login-form__status { color: var(--color-gold); font-size: 13px; text-align: center; }
.login-close { position: fixed; top: 22px; right: 22px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; opacity: .86; transition: opacity .2s ease, background .2s ease; }
.login-close:hover { opacity: 1; background: rgb(124 58 237 / 18%); }
.login-close img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
@keyframes login-marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) {
  .login-background__tracks { top: -80vh; left: -52vw; gap: 10px; transform: rotate(-11deg) scale(1.22); }
  .login-marquee__set { gap: 10px; padding-right: 10px; }
  .login-marquee__item { flex-basis: clamp(124px, 38vw, 180px); border-radius: 12px; }
  .login-content { width: min(100% - 40px, 470px); padding: 56px 0; }
  .login-brand { margin-bottom: 26px; }
  .login-brand .site-logo { height: 100px; }
  .login-form__field { height: 54px; }
  .login-close { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-marquee__track { animation: none; }
}
