/* Auth login / register — Figma 28:570 / 28:790 */

.page-auth {
  --auth-panel-w: min(1560px, calc(100vw - 360px));
  --auth-panel-h: 784px;
  --auth-inner-w: 1196px;
  --auth-inner-h: 667px;
  background: #000;
}

.page-auth .site-header,
.page-auth .site-footer {
  position: relative;
  z-index: 2;
}

.auth-main {
  background: #000;
}

.auth-section {
  padding: clamp(3rem, 8.33vw, 160px) 0 1.5rem;
}

.auth-wrap,
.page-auth .home-partners-wrap {
  width: var(--auth-panel-w);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.auth-panel {
  position: relative;
  width: 100%;
  min-height: var(--auth-panel-h);
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 18% 12%, rgba(0, 120, 255, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 88% 78%, rgba(0, 60, 180, 0.35) 0%, transparent 55%),
    linear-gradient(145deg, #03102e 0%, #01040f 42%, #020818 100%);
  box-shadow: 0 0 40px rgba(0, 80, 200, 0.12);
}

.auth-inner {
  position: absolute;
  top: 6%;
  left: 11.667%;
  width: 76.667%;
  height: 85.08%;
  max-width: var(--auth-inner-w);
  max-height: var(--auth-inner-h);
  display: grid;
  grid-template-columns: 364fr 832fr;
  box-sizing: border-box;
  overflow: hidden;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.94);
  box-sizing: border-box;
}

.auth-brand-logo {
  display: block;
  width: min(100%, 290px);
  height: auto;
  object-fit: contain;
}

.auth-flip-scene {
  perspective: 1400px;
  min-width: 0;
  min-height: 100%;
}

.auth-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: var(--auth-inner-h);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.15, 0.2, 1);
}

.auth-flip-card.is-register {
  transform: rotateY(180deg);
}

.auth-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: auto;
  background: linear-gradient(180deg, rgba(7, 13, 31, 0.98) 0%, rgba(5, 8, 18, 1) 100%);
  box-sizing: border-box;
}

.auth-flip-face--register {
  transform: rotateY(180deg);
}

.auth-form-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem) 1.75rem;
  box-sizing: border-box;
}

.auth-form-shell--register {
  padding-top: clamp(1.75rem, 2.5vw, 2.25rem);
}

.auth-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-transform: lowercase;
}

.auth-form-title {
  margin: 0 0 1.35rem;
  font-family: var(--font-orbitron);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.auth-form-title .title-accent {
  color: var(--out23-cyan);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label {
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap:focus-within {
  border-color: rgba(9, 255, 234, 0.55);
  box-shadow: 0 0 0 1px rgba(9, 255, 234, 0.2);
}

.auth-input-wrap i {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.auth-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-family: var(--font-poppins);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-forgot {
  align-self: flex-start;
  margin-top: -0.15rem;
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
}

.auth-forgot:hover {
  color: var(--out23-cyan);
}

.auth-submit {
  align-self: flex-start;
  margin-top: 0.35rem;
  min-width: 140px;
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--out23-cyan);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font-orbitron);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.auth-submit:hover {
  background: rgba(9, 255, 234, 0.1);
  box-shadow: 0 0 18px rgba(9, 255, 234, 0.18);
  transform: translateY(-1px);
}

.auth-switch {
  margin: auto 0 0;
  padding-top: 1.25rem;
  font-family: var(--font-poppins);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.auth-switch-link {
  border: none;
  padding: 0;
  background: none;
  color: var(--out23-cyan);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.auth-switch-link:hover {
  text-decoration: underline;
}

.auth-partners {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

@media (max-width: 1100px) {
  .page-auth {
    --auth-panel-w: min(100%, calc(100vw - 2rem));
  }

  .auth-inner {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 180px;
    padding: 1.5rem;
  }

  .auth-brand-logo {
    width: min(100%, 220px);
  }

  .auth-flip-card,
  .auth-flip-face {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-section {
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-flip-card {
    transition: none;
  }
}
