/* پنل آنیار ۳/۹ — صفحه ورود و صحنه صوتی */
/* === Voice login scene === */
/* Voice-first authentication experience */
.auth-shell {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  overflow: hidden;
}
.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
}
.auth-shell::before {
  width: 520px;
  height: 520px;
  right: -210px;
  top: -250px;
  background: rgba(114, 244, 220, 0.11);
}
.auth-shell::after {
  width: 460px;
  height: 460px;
  left: -190px;
  bottom: -220px;
  background: rgba(155, 124, 255, 0.1);
}
.auth-brand {
  min-height: 100dvh;
  padding: 30px clamp(28px, 5vw, 74px);
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(187, 255, 242, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 255, 242, 0.14) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(65% 52% at 48% 48%, #000, transparent);
  mask-image: radial-gradient(65% 52% at 48% 48%, #000, transparent);
}
.auth-logo {
  position: relative;
  z-index: 5;
}
.auth-logo img {
  animation: auth-logo-breathe 3s ease-in-out infinite;
}
.auth-brand-wave {
  height: 20px;
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 2px;
  margin-right: 7px;
}
.auth-brand-wave i {
  width: 2px;
  height: 6px;
  border-radius: 9px;
  background: var(--app-aqua);
  box-shadow: 0 0 8px var(--app-aqua);
  animation: auth-mini-wave 1s ease-in-out infinite;
}
.auth-brand-wave i:nth-child(2) {
  animation-delay: -0.5s;
}
.auth-brand-wave i:nth-child(3) {
  animation-delay: -0.25s;
}
.auth-brand-wave i:nth-child(4) {
  animation-delay: -0.7s;
}
.auth-message {
  width: min(100%, 610px);
  margin-top: clamp(42px, 8vh, 95px);
}
.auth-message .eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.auth-message .eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-aqua);
  box-shadow:
    0 0 0 5px rgba(114, 244, 220, 0.1),
    0 0 14px var(--app-aqua);
}
.auth-message h1 {
  font-size: clamp(43px, 5vw, 72px);
  line-height: 1.2;
}
.auth-message h1 em {
  display: inline-block;
  position: relative;
  color: transparent;
  font-style: normal;
  background: linear-gradient(
    105deg,
    var(--app-aqua-bright),
    var(--app-aqua),
    var(--app-gold)
  );
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: auth-sheen 5s ease-in-out infinite;
}
.auth-message h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 100%;
  background: linear-gradient(90deg, transparent, var(--app-aqua), transparent);
  box-shadow: 0 3px 15px rgba(114, 244, 220, 0.42);
}
.auth-message > p:last-child {
  margin-top: 18px;
  max-width: 510px;
  font-size: 14px;
}

.login-voice-scene {
  width: min(100%, 660px);
  height: 310px;
  margin-top: auto;
  position: relative;
  z-index: 3;
  perspective: 900px;
}
.login-orbit {
  position: absolute;
  inset: 20px 18%;
  border: 1px solid rgba(114, 244, 220, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(114, 244, 220, 0.02),
    0 0 0 90px rgba(114, 244, 220, 0.012);
}
.login-orbit.orbit-b {
  inset: 62px 29%;
  border-color: rgba(155, 124, 255, 0.14);
}
.login-voice-core {
  width: 116px;
  height: 116px;
  position: absolute;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 25%,
    #d8fff8,
    var(--app-aqua) 40%,
    #25ae9f 100%
  );
  box-shadow:
    0 0 0 13px rgba(114, 244, 220, 0.055),
    0 0 60px rgba(114, 244, 220, 0.3),
    inset 0 1px 4px rgba(255, 255, 255, 0.75);
  animation: auth-core-float 4s ease-in-out infinite;
}
.login-voice-core::before,
.login-voice-core::after {
  content: "";
  position: absolute;
  inset: -25px;
  border: 1px solid rgba(114, 244, 220, 0.2);
  border-radius: 50%;
  animation: auth-listen-ring 2.8s ease-out infinite;
}
.login-voice-core::after {
  animation-delay: -1.35s;
}
.login-voice-core span {
  width: 3px;
  height: 21px;
  border-radius: 9px;
  background: #07343a;
  animation: auth-voice-wave 0.8s ease-in-out infinite alternate;
}
.login-voice-core span:nth-child(2),
.login-voice-core span:nth-child(5) {
  height: 42px;
  animation-delay: -0.5s;
}
.login-voice-core span:nth-child(3),
.login-voice-core span:nth-child(4) {
  height: 57px;
  animation-delay: -0.25s;
}
.login-voice-core span:nth-child(6) {
  animation-delay: -0.68s;
}
.login-float-card {
  position: absolute;
  padding: 13px 15px;
  border: 1px solid var(--app-border);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgba(24, 69, 76, 0.8),
    rgba(6, 28, 35, 0.82)
  );
  box-shadow:
    var(--app-shadow),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}
.login-float-card > span {
  color: var(--app-muted);
  font-size: 9px;
}
.login-float-card p {
  margin: 4px 0 0;
  color: var(--app-text);
  font-size: 11px;
  font-weight: 700;
}
.heard-card {
  width: 245px;
  right: 0;
  top: 18px;
  transform: rotate(2deg);
  animation: auth-card-float 6.5s ease-in-out infinite;
}
.heard-card > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.heard-card i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-aqua);
  box-shadow: 0 0 10px var(--app-aqua);
}
.result-card {
  width: 235px;
  left: 0;
  bottom: 18px;
  transform: rotate(-2deg);
  animation: auth-card-float 7.5s ease-in-out -0.8s infinite reverse;
}
.result-card > span {
  display: flex;
  justify-content: space-between;
}
.result-card > span b {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #063039;
  background: var(--app-aqua);
}
.result-card p {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.result-card p strong,
.result-card p small {
  display: block;
}
.result-card p small {
  color: var(--app-aqua);
  font-size: 9px;
}
.insight-card-auth {
  right: 7%;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: auth-card-float 8s ease-in-out -1.7s infinite;
}
.insight-card-auth strong {
  color: var(--app-gold);
  font-size: 11px;
}

.auth-panel {
  min-height: 100dvh;
  padding: 28px clamp(28px, 5vw, 70px);
  position: relative;
}
.back-site {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 3;
}
.auth-form-wrap {
  width: min(100%, 455px);
  margin: auto;
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  border: 1px solid var(--app-border);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(21, 61, 69, 0.72),
    rgba(5, 25, 32, 0.78)
  );
  box-shadow:
    var(--app-shadow),
    0 0 0 1px rgba(114, 244, 220, 0.04),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  animation: auth-form-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-form-wrap::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  top: -80px;
  right: -70px;
  border-radius: 50%;
  background: rgba(114, 244, 220, 0.08);
  filter: blur(48px);
  pointer-events: none;
}
.auth-form-mark {
  width: 52px;
  height: 52px;
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 16px;
  color: #062a31;
  background: linear-gradient(135deg, var(--app-aqua-bright), var(--app-aqua));
  box-shadow: var(--app-glow);
}
.auth-form-mark span {
  width: 3px;
  height: 13px;
  border-radius: 7px;
  background: #06333a;
  animation: auth-voice-wave 0.85s ease-in-out infinite alternate;
}
.auth-form-mark span:nth-child(2) {
  height: 27px;
  animation-delay: -0.45s;
}
.auth-form-mark span:nth-child(3) {
  height: 20px;
  animation-delay: -0.2s;
}
.auth-form-mark span:nth-child(4) {
  animation-delay: -0.7s;
}
.auth-form-wrap h2 {
  font-size: 34px;
}
.auth-form-wrap form {
  animation: auth-content-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.phone-input,
.otp-input {
  border-radius: 14px;
  background: rgba(2, 18, 23, 0.46);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.phone-input:focus-within,
.otp-input:focus {
  border-color: rgba(114, 244, 220, 0.55);
  background: rgba(10, 40, 47, 0.72);
  box-shadow:
    0 0 0 4px rgba(114, 244, 220, 0.08),
    0 12px 35px -25px rgba(114, 244, 220, 0.55);
}
.primary-action {
  min-height: 54px;
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.primary-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    var(--app-glow),
    0 16px 35px -20px rgba(114, 244, 220, 0.7);
}
.primary-action:active {
  transform: scale(0.985);
}
.auth-trust {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--app-muted);
  font-size: 9px;
}
.auth-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-trust i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--app-aqua);
  box-shadow: 0 0 7px var(--app-aqua);
}
.auth-legal {
  position: relative;
  z-index: 2;
}

@keyframes auth-mini-wave {
  0%,
  100% {
    height: 6px;
    opacity: 0.55;
  }
  50% {
    height: 18px;
    opacity: 1;
  }
}
@keyframes auth-logo-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(114, 244, 220, 0.12));
  }
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 9px 28px rgba(114, 244, 220, 0.36));
  }
}
@keyframes auth-sheen {
  0%,
  100% {
    background-position: 160% 50%;
  }
  50% {
    background-position: -20% 50%;
  }
}
@keyframes auth-core-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@keyframes auth-listen-ring {
  from {
    transform: scale(0.68);
    opacity: 0.8;
  }
  to {
    transform: scale(1.25);
    opacity: 0;
  }
}
@keyframes auth-voice-wave {
  from {
    transform: scaleY(0.42);
    opacity: 0.65;
  }
  to {
    transform: scaleY(1.08);
    opacity: 1;
  }
}
@keyframes auth-card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@keyframes auth-form-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes auth-content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr 1fr;
  }
  .auth-brand {
    padding-inline: 30px;
  }
  .auth-message h1 {
    font-size: 48px;
  }
  .login-voice-scene {
    height: 280px;
  }
  .heard-card {
    width: 210px;
  }
  .result-card {
    width: 205px;
  }
  .insight-card-auth {
    display: none;
  }
  .auth-panel {
    padding-inline: 24px;
  }
  .auth-form-wrap {
    padding: 30px 25px;
  }
}
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }
  .auth-shell {
    display: block;
    overflow-x: clip;
    overflow-y: visible;
  }
  .auth-brand {
    min-height: 420px;
    padding: 22px 20px 0;
    border-left: 0;
    border-bottom: 1px solid var(--app-border);
  }
  .auth-logo img {
    width: 74px;
    height: 57px;
  }
  .auth-message {
    margin-top: 20px;
    text-align: center;
  }
  .auth-message .eyebrow {
    margin-inline: auto;
  }
  .auth-message h1 {
    font-size: 38px;
  }
  .auth-message > p:last-child {
    max-width: 360px;
    margin-inline: auto;
    font-size: 12px;
  }
  .login-voice-scene {
    height: 150px;
    margin: 8px auto 0;
  }
  .login-orbit {
    inset: 5px 24%;
  }
  .login-orbit.orbit-b {
    inset: 27px 34%;
  }
  .login-voice-core {
    width: 78px;
    height: 78px;
    top: 38px;
  }
  .login-voice-core span {
    height: 15px;
  }
  .login-voice-core span:nth-child(2),
  .login-voice-core span:nth-child(5) {
    height: 29px;
  }
  .login-voice-core span:nth-child(3),
  .login-voice-core span:nth-child(4) {
    height: 40px;
  }
  .heard-card {
    width: 174px;
    right: -6px;
    top: 2px;
    padding: 9px 10px;
  }
  .heard-card p {
    font-size: 8px;
  }
  .result-card {
    width: 168px;
    left: -5px;
    bottom: 2px;
    padding: 9px 10px;
  }
  .result-card p {
    font-size: 8px;
  }
  .result-card p small {
    font-size: 7px;
  }
  .auth-panel {
    min-height: 620px;
    padding: 20px 16px 28px;
  }
  .auth-form-wrap {
    margin: 35px auto 24px;
    padding: 28px 22px;
    border-radius: 23px;
  }
  .auth-form-mark {
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
  }
  .auth-form-wrap h2 {
    font-size: 30px;
  }
  .auth-legal {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 390px) {
  .auth-trust {
    gap: 10px;
    font-size: 8px;
  }
  .auth-message h1 {
    font-size: 34px;
  }
  .heard-card {
    right: -16px;
  }
  .result-card {
    left: -16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-logo img,
  .auth-brand-wave i,
  .auth-message h1 em,
  .login-voice-core,
  .login-voice-core::before,
  .login-voice-core::after,
  .login-voice-core span,
  .login-float-card,
  .auth-form-wrap,
  .auth-form-wrap form,
  .auth-form-mark span {
    animation: none;
  }
}
