/* Grafica autonoma della pagina accesso: file separato per versionamento e manutenzione. */
.auth-page {
  background: #f3efe7;
}

.auth-hero {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 560px);
  gap: clamp(38px, 4.5vw, 76px);
  min-height: 860px;
  background:
    linear-gradient(90deg, rgba(8,13,17,.97) 0%, rgba(12,18,23,.9) 42%, rgba(9,19,25,.42) 70%, rgba(7,15,20,.68) 100%),
    linear-gradient(180deg, rgba(7,13,17,.1), rgba(7,13,17,.58)),
    url("../img/mockup/home-hero-architecture.jpg") center 46% / cover no-repeat;
  box-shadow: inset 0 -1px rgba(51,197,220,.72);
}

.auth-hero h1 {
  max-width: 780px;
  font-size: clamp(48px, 5vw, 78px);
  text-wrap: balance;
  text-shadow: 0 12px 38px rgba(0,0,0,.32);
}

.auth-hero p {
  max-width: 690px;
  color: rgba(255,255,255,.78);
}

.auth-hero-copy {
  align-self: center;
}

.auth-benefits {
  max-width: 640px;
  background: rgba(5,12,16,.64);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

.auth-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.15);
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(7,17,23,.76), rgba(7,13,17,.3));
  background-size: 58px 58px, 58px 58px, auto;
  box-shadow: 0 36px 100px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.06);
  isolation: isolate;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 3% 1% 0;
  z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 48%, rgba(181,31,46,.42), rgba(181,31,46,.1) 38%, transparent 67%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.08), transparent 44%);
  filter: blur(8px);
}

.auth-visual::after {
  content: "DOWNLOAD HUB";
  position: absolute;
  right: 1%;
  bottom: 2%;
  z-index: -1;
  color: rgba(255,255,255,.045);
  font-size: clamp(42px, 4.6vw, 76px);
  font-weight: 900;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.auth-visual-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .62;
  background:
    linear-gradient(90deg, rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(560px) rotateX(61deg) rotateZ(-8deg) scale(1.08);
  transform-origin: 50% 64%;
  mask-image: radial-gradient(ellipse, #000 8%, transparent 72%);
}

.auth-orbit {
  position: absolute;
  top: 50%;
  left: 53%;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
}

.auth-orbit::after {
  content: "";
  position: absolute;
  top: 19%;
  right: 5%;
  width: 8px;
  height: 8px;
  border: 3px solid #17242d;
  border-radius: 50%;
  background: #ef5662;
  box-shadow: 0 0 0 5px rgba(239,86,98,.18);
}

.auth-orbit-outer { width: 400px; height: 400px; }
.auth-orbit-inner {
  width: 286px;
  height: 286px;
  border-style: dashed;
  transform: translate(-50%, -50%) rotate(23deg);
}
.auth-orbit-inner::after {
  top: auto;
  right: auto;
  bottom: 5%;
  left: 22%;
  width: 5px;
  height: 5px;
  background: #fff;
}

.auth-visual-core {
  position: absolute;
  top: 50%;
  left: 53%;
  display: grid;
  place-content: center;
  width: 178px;
  height: 178px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(145deg, #d12c3e, #7f101c);
  box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.22);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.auth-visual-core span {
  position: absolute;
  top: 15px;
  left: 17px;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .22em;
}

.auth-visual-core strong {
  color: #fff;
  font-size: 26px;
  line-height: .88;
  letter-spacing: -.045em;
}

.auth-visual-core i {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 34px;
  height: 6px;
  background: #ff6370;
}

.auth-file-card {
  position: absolute;
  width: 142px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(9,18,24,.91);
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}

.auth-file-card b,
.auth-file-card span,
.auth-file-card i { display: block; }
.auth-file-card b { color: #ff6370; font-size: 15px; letter-spacing: .04em; }
.auth-file-card span {
  margin: 4px 0 10px;
  color: rgba(255,255,255,.72);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-file-card i { width: 100%; height: 2px; margin-top: 4px; background: rgba(255,255,255,.15); }
.auth-file-card i:nth-of-type(2) { width: 76%; }
.auth-file-card i:nth-of-type(3) { width: 47%; }

.auth-file-rtf { top: 44px; left: 0; transform: rotate(-6deg); animation: auth-float 6s ease-in-out infinite; }
.auth-file-doc { top: 0; right: 21%; transform: rotate(3deg); animation: auth-float 6.6s ease-in-out -1.2s infinite; }
.auth-file-pdf { top: 145px; right: 0; transform: rotate(6deg); animation: auth-float 5.7s ease-in-out -2.4s infinite; }
.auth-file-zip { right: 10%; bottom: 4px; transform: rotate(-4deg); animation: auth-float 6.3s ease-in-out -3.4s infinite; }
.auth-file-xlsx { bottom: 38px; left: 2%; transform: rotate(4deg); animation: auth-float 5.9s ease-in-out -4.2s infinite; }

.auth-route-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,86,98,.86), transparent);
  transform-origin: left center;
}
.auth-route-one { top: 122px; left: 18%; width: 210px; transform: rotate(28deg); }
.auth-route-two { right: 12%; bottom: 123px; width: 180px; transform: rotate(-36deg); }

.auth-visual-index {
  position: absolute;
  top: 190px;
  left: 3%;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.56);
}
.auth-visual-index strong { color: #fff; font-size: 28px; line-height: 1; }
.auth-visual-index span { font-size: 8px; font-weight: 800; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }

.auth-visual-badge {
  position: absolute;
  bottom: 14px;
  left: 31%;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.19);
  background: rgba(9,16,21,.78);
  color: rgba(255,255,255,.76);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-visual-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59cf8f;
  box-shadow: 0 0 0 4px rgba(89,207,143,.14);
}

@keyframes auth-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@media (max-width: 1220px) {
  .auth-hero { grid-template-columns: minmax(0, 1fr) minmax(410px, 470px); }
  .auth-hero h1 { font-size: clamp(48px, 5.8vw, 70px); }
  .auth-visual { height: 450px; }
  .auth-orbit-outer { width: 350px; height: 350px; }
  .auth-orbit-inner { width: 250px; height: 250px; }
  .auth-file-card { width: 126px; }
}

@media (max-width: 980px) {
  .auth-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    background-position: 58% center;
  }
  .auth-hero h1 { max-width: 760px; }
  .auth-visual { width: min(100%, 650px); height: 470px; margin: 0 auto; }
}

@media (max-width: 620px) {
  .auth-hero {
    background:
      linear-gradient(180deg, rgba(7,14,18,.92), rgba(7,16,21,.78)),
      url("../img/mockup/home-hero-architecture.jpg") 63% center / cover no-repeat;
  }
  .auth-visual {
    width: 112%;
    height: 360px;
    margin: 0 -6% -30px;
    transform: scale(.88);
    transform-origin: top center;
  }
  .auth-orbit-outer { width: 300px; height: 300px; }
  .auth-orbit-inner { width: 214px; height: 214px; }
  .auth-visual-core { width: 132px; height: 132px; }
  .auth-visual-core strong { font-size: 20px; }
  .auth-file-card { width: 105px; min-height: 78px; padding: 10px; }
  .auth-file-card span { font-size: 7px; }
  .auth-file-doc { right: 17%; }
  .auth-file-pdf { top: 118px; }
  .auth-file-xlsx { bottom: 23px; }
  .auth-visual-index { top: 150px; }
  .auth-visual-badge { bottom: 4px; left: 31%; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-file-card { animation: none; }
}
