/* Flask port of components/ui/sign-in-card-2.tsx — glass card on Aurora */

.xa-login-boot-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: #0a0404;
  opacity: 1;
  transition: opacity 0.9s ease;
}

.xa-login-boot-cover.is-hidden {
  opacity: 0;
}

body.sign-in-page {
  margin: 0;
  padding: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: block !important;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sign-in-viewport {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.sign-in-card-wrap {
  position: relative;
  width: 100%;
  max-width: 24rem;
  animation: signInFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes signInFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sign-in-card-wrap.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.sign-in-card-beam {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: 1rem;
  overflow: hidden;
  z-index: 0;
}

.sign-in-card-beam::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: signInBeamTop 3.5s ease-in-out infinite;
}

@keyframes signInBeamTop {
  0% {
    left: -50%;
    opacity: 0.35;
  }
  45% {
    opacity: 0.75;
  }
  100% {
    left: 100%;
    opacity: 0.35;
  }
}

.sign-in-card {
  position: relative;
  z-index: 1;
  border-radius: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(12, 22, 14, 0.92) 0%, rgba(4, 10, 6, 0.88) 100%);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  padding: 1.65rem 1.5rem 1.5rem;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(239, 68, 68, 0.06) inset,
    0 0 48px -12px rgba(239, 68, 68, 0.18);
}

.sign-in-card__head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.sign-in-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  width: 100%;
  min-height: 4.25rem;
}

.sign-in-card__logo {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: 11rem;
  margin: 0 auto;
  object-fit: contain;
}

/* Transparent VP9 WebM — no matte; fallback blend if alpha unsupported */
.sign-in-card__logo--video {
  height: 4.25rem;
  max-width: 13.5rem;
  background: transparent;
  pointer-events: none;
  -webkit-mask-image: none;
  filter: drop-shadow(0 2px 14px rgba(239, 68, 68, 0.12))
    drop-shadow(0 0 24px rgba(255, 40, 40, 0.08));
}

.sign-in-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sign-in-card__sub {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.sign-in-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sic2-field {
  position: relative;
}

.sic2-field__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: color 0.2s ease;
}

.sic2-input {
  width: 100%;
  height: 2.75rem;
  box-sizing: border-box;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.9375rem;
  padding: 0 0.75rem 0 2.35rem;
  outline: none;
  transition:
    background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.sic2-field:focus-within {
  transform: translateY(-1px);
}

.sic2-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sic2-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.sic2-field:focus-within .sic2-field__icon {
  color: #fff;
}

.sic2-field--key .sic2-input {
  padding-right: 2.5rem;
}

.sic2-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.25rem;
  cursor: pointer;
  line-height: 0;
}

.sic2-toggle:hover {
  color: #fff;
}

.sic2-toggle svg {
  width: 1rem;
  height: 1rem;
}

.sic2-toggle .sic2-eye-off {
  display: none;
}

.sic2-toggle.is-shown .sic2-eye-on {
  display: none;
}

.sic2-toggle.is-shown .sic2-eye-off {
  display: block;
}

/* 21st.dev animated-checkbox (vanilla port) */
.sic2-remember {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  margin: 0.15rem 0 0.1rem;
  padding: 0.15rem 0.1rem;
  border-radius: 0.375rem;
  transition: opacity 0.2s ease;
}

.sic2-remember:hover .sic2-remember__text {
  color: rgba(255, 255, 255, 0.92);
}

.sic2-remember__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sic2-remember__box {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition:
    background 0.28s cubic-bezier(0.34, 1.25, 0.64, 1),
    border-color 0.22s ease,
    transform 0.28s cubic-bezier(0.34, 1.25, 0.64, 1),
    box-shadow 0.28s ease;
}

.sic2-remember:hover .sic2-remember__box {
  border-color: rgba(255, 255, 255, 0.55);
}

.sic2-remember__box.is-checked {
  background: #ef4444;
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.sic2-remember__check {
  width: 100%;
  height: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.sic2-remember__path {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.sic2-remember__box.is-checked .sic2-remember__path {
  stroke-dashoffset: 0;
}

.sic2-remember__text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.22s ease;
}

.sic2-remember__box.is-checked + .sic2-remember__text {
  color: rgba(255, 255, 255, 0.52);
}

.sic2-error {
  margin: 0;
  font-size: 0.75rem;
  color: #f87171;
  text-align: center;
}

.sic2-btn {
  margin-top: 0.35rem;
}

/* Primary gradient + states live in blaze-cta.css */

.sic2-btn__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.sic2-btn__spin {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(10, 2, 2, 0.25);
  border-top-color: #0a0404;
  border-radius: 50%;
  animation: sic2Spin 0.65s linear infinite;
}

@keyframes sic2Spin {
  to {
    transform: rotate(360deg);
  }
}

.sic2-input.input-shake {
  animation: sic2Shake 0.45s ease;
}

@keyframes sic2Shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sign-in-card-wrap,
  .sign-in-card-beam::before {
    animation: none;
  }
}
