.access-site {
  min-height: 100vh;
  background: #101112;
  color: #eaeaea;
  padding: 0 5vw;
  letter-spacing: -0.015em;
}
.access-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff0a;
}
.access-header .brand {
  padding: 0;
}
.access-header > span {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #72767c;
}
.access-main {
  max-width: 1400px;
  margin: auto;
  min-height: calc(100vh - 175px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 7%;
  padding: 70px 0 80px;
}
.access-intro {
  max-width: 570px;
}
.auth-eyebrow {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #7f8388;
  margin-bottom: 22px;
}
.access-intro h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.055em;
  margin: 0 0 20px;
}
.access-intro > p {
  font-size: 13px;
  line-height: 1.8;
  color: #92979e;
  max-width: 450px;
}
.workflow {
  position: relative;
  margin-top: 38px;
  border: 1px solid #ffffff0d;
  border-radius: 14px;
  background: linear-gradient(125deg, #181a1d, #121315);
  box-shadow:
    inset 0 1px 0 #ffffff05,
    0 18px 50px -35px #000;
  overflow: hidden;
}
.flow-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff15 0.65px, transparent 0.65px);
  background-size: 17px 17px;
  mask-image: linear-gradient(transparent, #000 20%, #000 85%, transparent);
}
.flow-top,
.flow-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #686e76;
}
.flow-demo {
  letter-spacing: 0;
  color: #7a8087;
}
.flow-canvas {
  position: relative;
  aspect-ratio: 760/420;
}
.flow-canvas > svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}
.flow-wire {
  fill: none;
  stroke: #8f919d;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0.8;
}
.flow-energy {
  fill: none;
  stroke: #e8e2ff;
  stroke-width: 2;
  stroke-dasharray: 5 95;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px #b5a8ff);
  animation: flow-pulse 4s linear infinite;
}
.energy-1 {
  animation-delay: -1.3s;
}
.energy-2 {
  animation-delay: -2.7s;
}
.energy-3 {
  animation-duration: 2.5s;
}
@keyframes flow-pulse {
  to {
    stroke-dashoffset: -100;
  }
}
.flow-provider {
  position: absolute;
  left: 4%;
  width: 23%;
  height: 16%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid #ffffff15;
  border-radius: 8px;
  background: linear-gradient(#24272c, #1b1d21);
  box-shadow: 0 5px 15px #0003;
}
.flow-provider img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  border-radius: 6px;
}
.flow-provider strong {
  display: block;
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 500;
}
.flow-provider small {
  display: block;
  margin-top: 3px;
  font-size: clamp(6px, 0.7vw, 8px);
  color: #777e88;
}
.flow-saweria {
  top: 14.6%;
}
.flow-bagibagi {
  top: 42%;
}
.flow-sociabuzz {
  top: 69.4%;
}
.flow-provider i,
.flow-roblox i,
.core-port {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid #8b8d93;
  border-radius: 50%;
  background: #292b31;
  right: -3px;
  top: calc(50% - 2.5px);
}
.flow-core {
  position: absolute;
  left: 46.7%;
  top: 34%;
  width: 12%;
  height: 32%;
  border: 1px solid #77708155;
  border-radius: 10px;
  background: linear-gradient(130deg, #323037, #1c1c20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow:
    0 0 30px #8774cf0a,
    0 12px 20px #0004;
}

.flow-core strong {
  font-size: 11px;
  font-weight: 500;
}
.flow-core small {
  font-size: 6px;
  letter-spacing: 0.12em;
  color: #8d8895;
  margin-top: 4px;
}
.core-port.left {
  left: -3px;
}
.core-port.right {
  right: -3px;
}
.flow-roblox {
  position: absolute;
  left: 77%;
  top: 33%;
  width: 19%;
  height: 34%;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  background: linear-gradient(#282b30, #1d2024);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px #0003;
}
.roblox-mark {
  height: 25px;
  width: 25px;
  background: #ddd;
  transform: rotate(17deg);
  position: relative;
  margin-bottom: 12px;
}
.roblox-mark:after {
  content: '';
  position: absolute;
  inset: 9px;
  background: #24272b;
}
.flow-roblox strong {
  font-size: 12px;
  font-weight: 500;
}
.flow-roblox small {
  font-size: 8px;
  color: #777e88;
  margin-top: 5px;
}
.flow-roblox i {
  left: -3px;
}
.access-note {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #62676e;
  padding: 18px 3px;
}
.access-form {
  width: 100%;
  max-width: 360px;
  margin: auto;
}
.access-form h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 12px;
}
.access-form > p {
  font-size: 13px;
  color: #858b94;
  line-height: 1.8;
  margin: 0 0 28px;
}
.access-form .field {
  font-size: 12px;
  color: #bbc0c7;
  margin-bottom: 18px;
}
.access-form input {
  background: #181a1d;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  min-height: 46px;
  font-size: 13px;
  padding: 12px 13px;
}
.access-form input:focus {
  border-color: #7f8794;
  box-shadow: 0 0 0 3px #ffffff06;
  outline: none;
}
.access-form button.primary {
  width: 100%;
  min-height: 45px;
  background: #e7e7e8;
  color: #191b1e;
  border: 1px solid #fff1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.access-form button.primary:hover {
  background: #fff;
}
.access-form .google {
  min-height: 45px;
  background: #1b1d21;
  border: 1px solid #ffffff15;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
}
.google svg {
  width: 18px;
  height: 18px;
}
.access-form .or {
  font-size: 10px;
  margin: 22px 0;
  color: #626871;
}
.access-form .auth-bottom {
  font-size: 11px;
  color: #737b85;
  margin-top: 26px;
}
.access-form a {
  color: #c3c9d1;
}
.forgot-row {
  text-align: right;
  font-size: 11px;
  margin: -5px 0 21px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  margin-top: 24px;
}
.auth-links button {
  font-size: 11px;
  border: 0;
  background: none;
  padding: 0;
  color: #c3c9d1;
}
.auth-error {
  font-size: 12px;
  color: #eea4a4;
  margin-top: 15px;
}
.access-footer {
  max-width: 1400px;
  margin: auto;
  border-top: 1px solid #ffffff0a;
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 9px;
  color: #676e78;
}
.password-control {
  display: block;
  position: relative;
  width: 100%;
}
.password-control input {
  padding-right: 45px !important;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 8px;
  color: #9298a1;
}
.password-toggle:hover {
  color: #e5e7eb;
  background: #ffffff08;
}
.password-toggle svg {
  width: 19px;
  height: 19px;
}
.eye-slash {
  display: none;
}
.password-toggle[aria-pressed='true'] .eye-slash {
  display: block;
}
@media (max-width: 1000px) {
  .access-main {
    gap: 5%;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 1fr);
  }
  .flow-provider {
    gap: 5px;
    padding: 0 6px;
  }
  .flow-provider img {
    width: 19px;
    height: 19px;
  }
  .flow-provider small {
    display: none;
  }
  .flow-core {
    left: 45.5%;
    width: 14%;
  }

  .flow-top {
    font-size: 7px;
    padding: 15px;
  }
  .flow-roblox strong {
    font-size: 10px;
  }
  .access-intro h2 {
    font-size: 35px;
  }
}
@media (max-width: 720px) {
  .access-site {
    padding: 0 24px;
  }
  .access-header {
    height: 82px;
  }
  .access-main {
    display: flex;
    flex-direction: column-reverse;
    padding: 42px 0;
    gap: 65px;
  }
  .access-form {
    max-width: 390px;
  }
  .access-visual {
    width: 100%;
    max-width: 540px;
  }
  .access-intro h2 {
    font-size: 32px;
  }
  .flow-provider strong {
    font-size: 10px;
  }
  .flow-provider img {
    width: 22px;
    height: 22px;
  }
  .workflow {
    margin-top: 25px;
  }
  .access-footer {
    font-size: 8px;
    gap: 20px;
  }
  .access-note {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-energy {
    animation: none;
    display: none;
  }
}

/* Logo supplied in landscape format; preserve its proportions. */

.flow-wire {
  vector-effect: non-scaling-stroke;
}

/* Full logo image, no fixed offset or clipping. A luminance glow preserves the source artwork. */
.fami-wordmark,
.core-mark {
  position: relative;
  display: block;
  overflow: visible;
  background: transparent;
  isolation: isolate;
}
.fami-wordmark {
  width: 180px;
  height: 94px;
  flex-shrink: 0;
}
.core-mark {
  width: 80px;
  max-width: 95%;
  height: 54px;
  margin: 0 0 3px;
}
.fami-wordmark img,
.core-mark img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  left: auto;
  top: auto;
  mix-blend-mode: screen;
}
.fami-wordmark::before,
.core-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/fami-logo-glow.png') center/contain no-repeat;
  filter: blur(7px);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}
.access-site {
  background-color: #101112;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 48px 48px;
}
.workflow {
  background: linear-gradient(125deg, #181a1d, #121315);
}
.flow-grid {
  background-image: radial-gradient(#ffffff15 0.65px, transparent 0.65px);
  background-size: 17px 17px;
}
.access-intro h2 .studio-byline {
  display: block;
  margin-top: 8px;
  font-size: 0.82em;
  font-weight: 400;
  color: #bdc1c7;
  letter-spacing: -0.045em;
}
@media (max-width: 720px) {
  .fami-wordmark {
    width: 145px;
    height: 76px;
  }
  .access-intro h2 {
    font-size: 31px;
  }
}
