/* MY BUSINESS NEXT — CINEMATIC UI */

.auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 16px;
  background: #050b19 !important;
}

/* Объёмное световое пространство */
.auth-page::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 35%,
      #0879a965, transparent 34%),
    radial-gradient(ellipse at 78% 24%,
      #6444cf65, transparent 33%),
    radial-gradient(ellipse at 55% 85%,
      #008b9160, transparent 38%),
    linear-gradient(135deg,#050b19,#101d37,#030712);
  animation: nextAtmosphere 16s ease-in-out infinite alternate;
}

/* Цифровая архитектура */
.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(#54dfff18 1px,transparent 1px),
    linear-gradient(90deg,#54dfff18 1px,transparent 1px);
  background-size: 65px 65px;
  transform: perspective(500px) rotateX(48deg) scale(1.8);
  animation: nextGrid 18s linear infinite;
}

.auth-page .auth-card {
  position: relative;
  z-index: 1;
  width: min(100%,530px);
  border: 1px solid #ffffff30;
  border-radius: 28px;
  background: #101d35e8;
  color: #f5f9ff;
  box-shadow:
    0 35px 110px #0009,
    0 0 65px #129be219,
    inset 0 1px #ffffff25;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: nextCardEnter .85s cubic-bezier(.2,.8,.2,1) both;
}

.auth-page .auth-card h1,
.auth-page .auth-logo b {
  color: #ffffff;
}

.auth-page .auth-card p,
.auth-page .auth-card small,
.auth-page .auth-field span {
  color: #c1d0e5;
}

.auth-page .auth-field input,
.auth-page .auth-field select {
  background: #ffffff12;
  border: 1px solid #ffffff32;
  color: #ffffff;
  border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
}

.auth-page .auth-field input:focus,
.auth-page .auth-field select:focus {
  border-color: #55dffb;
  box-shadow: 0 0 0 3px #55dffb20;
  outline: none;
}

.auth-page .auth-primary {
  border-radius: 13px;
  background: linear-gradient(110deg,#0877e8,#11b4cb);
  box-shadow: 0 10px 28px #008de744;
  transition: transform .22s, box-shadow .22s;
}

.auth-page .auth-primary:active {
  transform: scale(.97);
}

.auth-page .auth-tabs {
  border-color: #ffffff25;
}

.auth-page .auth-tabs button,
.auth-page .auth-demo {
  color: #cbdaf0;
}

.auth-page .auth-tabs button.on {
  color: #55dfff;
}

.next-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #050b19;
  animation: nextIntroExit 1.9s ease forwards;
}

.next-intro-inner {
  text-align: center;
  animation: nextIntroEnter .85s ease both;
}

.next-intro-mark {
  font-size: 76px;
  font-weight: 900;
  color: #6cdefa;
  text-shadow: 0 0 55px #11bdec88;
}

.next-intro-title {
  color: white;
  font-size: clamp(22px,5vw,35px);
  font-weight: 800;
  letter-spacing: 4px;
}

.next-intro-sub {
  color: #9bb4d2;
  margin-top: 12px;
  letter-spacing: 3px;
  font-size: 11px;
}

@keyframes nextAtmosphere {
  0% { transform: translate(-4%,0) rotate(-6deg) scale(1); }
  100% { transform: translate(4%,3%) rotate(7deg) scale(1.12); }
}

@keyframes nextGrid {
  from { background-position: 0 0; }
  to { background-position: 0 130px; }
}

@keyframes nextCardEnter {
  from { opacity: 0; transform: translateY(35px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nextIntroEnter {
  from { opacity: 0; transform: scale(.7) translateY(25px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes nextIntroExit {
  0%,65% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@media (max-width:600px) {
  .auth-page .auth-card {
    border-radius: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

@media (prefers-reduced-motion:reduce) {
  .auth-page::before,
  .auth-page::after,
  .auth-page .auth-card {
    animation: none;
  }
  .next-intro { display: none; }
}
