.auth-page{
  min-height: calc(100vh - 72px - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 48px;
  position: relative;
}

.auth-preloader{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(14, 42, 71, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: auth-preloader-hide 0.4s ease 2.6s forwards;
}

.auth-preloader-inner{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 42, 71, 0.16);
  box-shadow: 0 20px 44px rgba(14,42,71,0.18);
  display: grid;
  place-items: center;
  animation: auth-preloader-pulse 1.1s ease-in-out infinite;
}

.auth-preloader-logo{
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.auth-shell{
  display: grid;
  grid-template-columns: minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auth-card{
  padding: 26px;
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(14,42,71,0.18);
  box-shadow: 0 20px 44px rgba(14,42,71,0.14);
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.auth-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.auth-logo-img{
  width: 220px;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-card-head h2{
  margin: 0;
  font-size: 22px;
}

.auth-card-head p{
  margin: 6px 0 0;
  color: rgba(14,42,71,0.7);
  font-size: 14px;
}

.auth-alert{
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(154, 32, 32, 0.3);
  background: rgba(154, 32, 32, 0.08);
  color: #8a1f1f;
  font-size: 14px;
}

.auth-targets{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 8px;
}

.auth-target{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 56px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(14,42,71,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,252,0.96));
  box-shadow: 0 10px 24px rgba(14,42,71,0.08), inset 0 -2px 0 rgba(14,42,71,0.06);
  color: rgba(14,42,71,0.74);
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
  user-select: none;
  white-space: nowrap;
}

.auth-target:hover{
  border-color: rgba(58, 153, 255, 0.34);
  background: rgba(247,250,255,0.98);
  color: #0e2a47;
  transform: translateY(-1px);
}

.auth-target.is-active{
  border-color: rgba(73, 162, 255, 0.9);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,246,255,0.98));
  box-shadow: 0 12px 28px rgba(59,135,227,0.18), inset 0 0 0 2px rgba(73, 162, 255, 0.15), inset 0 -3px 0 rgba(59,135,227,0.18);
  color: #1e466f;
}

.auth-target input{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.auth-target-icon{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: #9aa8bd;
}

.auth-target.is-active .auth-target-icon{
  color: #4e9ff5;
}

.auth-target-dot{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 4px solid currentColor;
  box-sizing: border-box;
  display: block;
}

.auth-target-glyph{
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.auth-target-label{
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 17px;
  line-height: 1.05;
}

.auth-target-icon--partner .auth-target-glyph{
  font-size: 24px;
}

.auth-target-icon--client_portal .auth-target-glyph{
  font-size: 19px;
  letter-spacing: -0.06em;
}

.auth-form{
  display: grid;
  gap: 12px;
}

.auth-form .field span{
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(14,42,71,0.7);
}

.auth-form input{
  width: 100%;
}

.auth-submit{
  width: 100%;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 16px;
}

.auth-footnote{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(14,42,71,0.7);
  text-align: center;
}

@media (max-width: 980px){
  .auth-card{ width: 100%; }
}

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

  .auth-target{
    width: 100%;
    justify-content: flex-start;
  }
}

@keyframes auth-preloader-pulse{
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes auth-preloader-hide{
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
