/*
 * Stacksona Dashboard account entry
 * Visual-only treatment. No content or interaction changes.
 */

.home-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0f1012;
  color: #f0f0f1;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(93, 86, 200, 0.16), transparent 28rem),
    radial-gradient(circle at 50% 110%, rgba(93, 86, 200, 0.08), transparent 34rem),
    linear-gradient(180deg, #121317 0%, #0f1012 100%);
}

.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 0 16rem, rgba(15, 16, 18, 0.12) 28rem, rgba(15, 16, 18, 0.72) 72rem);
}

.ambient-grid {
  display: none;
}

.ambient-canvas {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.46;
}

.home-login-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: transparent;
}

.home-auth-card {
  position: relative;
  width: min(100%, 470px);
  display: grid;
  gap: 1.6rem;
  align-content: center;
  padding: clamp(2rem, 5vw, 2.8rem);
  border: 1px solid #3c434a;
  border-radius: 10px;
  background: rgba(29, 35, 39, 0.94);
  color: #f0f0f1;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: home-entry 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 72px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #8d86ff;
  box-shadow: 0 0 22px rgba(141, 134, 255, 0.45);
}

.home-auth-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.018) inset;
}

.home-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  justify-self: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  color: #ffffff;
  text-decoration: none;
}

.home-brand-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.home-company-name {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.home-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.home-eyebrow {
  margin: 0 0 0.75rem;
  color: #aaa4ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-copy h1 {
  max-width: 12ch;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.home-copy .lead {
  max-width: 24rem;
  margin: 1rem auto 0;
  color: #a7aaad;
  font-size: 0.96rem;
  line-height: 1.62;
}

.home-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  padding-top: 0.15rem;
}

.home-primary {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid #6f68dc;
  border-radius: 5px;
  background: #5d56c8;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(93, 86, 200, 0.2);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-primary:hover {
  border-color: #8079ee;
  background: #6b64d8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(93, 86, 200, 0.28);
}

.home-primary:active {
  transform: translateY(0);
}

.signin-link {
  justify-self: center;
  color: #8f9398;
  font-size: 0.88rem;
  text-decoration: none;
}

.signin-link span {
  color: #dcdcde;
  font-weight: 600;
  transition: color 0.18s ease;
}

.signin-link:hover span {
  color: #aaa4ff;
}

@keyframes home-entry {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .home-page {
    overflow: auto;
  }

  .home-login-wrap {
    padding: 1rem;
  }

  .home-auth-card {
    padding: 1.7rem 1.4rem;
    border-radius: 8px;
  }

  .home-copy h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-canvas {
    display: none;
  }

  .home-auth-card {
    animation: none;
  }
}
