:root {
  --bg: #080808;
  --panel: #111111;
  --text: #f4f1ec;
  --muted: #a7a29b;
  --line: #303030;
  --accent: #ff571c;
  --red: #ff1717;
  --orange: #ff7a1a;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #080808;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* HEADER */

.members-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 20px clamp(22px, 4vw, 68px);
  border-bottom: 1px solid #252525;
  background: rgba(8, 8, 8, .94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .1em;
}

.brand-mark {
  position: relative;
  width: 22px;
  height: 34px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 8px;
  background: linear-gradient(var(--red), var(--orange));
}

.brand-mark::before {
  left: 1px;
  clip-path: polygon(0 0, 100% 16%, 100% 84%, 0 100%);
}

.brand-mark::after {
  right: 1px;
  clip-path: polygon(100% 0, 0 16%, 0 84%, 100% 100%);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.header-label {
  color: #898989;
}

.header-separator {
  width: 1px;
  height: 17px;
  background: #424242;
}

.header-members {
  color: var(--accent);
}

/* STRUTTURA */

.members-main {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 160px);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 16% 45%,
      rgba(255, 69, 21, .09),
      transparent 42%
    ),
    #080808;
}

.background-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(#414141 1px, transparent 1px),
    linear-gradient(90deg, #414141 1px, transparent 1px);
  background-size: 75px 75px;
  mask-image: linear-gradient(
    90deg,
    #000,
    transparent 90%
  );
}

.background-glow {
  position: absolute;
  z-index: -1;
  top: 15%;
  left: -15%;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 87, 28, .12),
    transparent 65%
  );
  filter: blur(40px);
  pointer-events: none;
  animation: glow-breathe 9s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  from {
    opacity: .55;
    transform: scale(.92);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

.members-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(380px, .85fr);
  gap: clamp(45px, 6vw, 120px);
  align-items: center;
  width: min(100%, 1600px);
  min-height: calc(100svh - 160px);
  margin: 0 auto;
  padding:
    clamp(65px, 7vw, 120px)
    clamp(22px, 4vw, 68px);
}

/* PRESENTAZIONE */

.members-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 600px;
}

.intro-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.6;
}

.intro-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    #5b2a1a,
    transparent
  );
}

.intro-content {
  padding: 65px 0;
}

.intro-kicker {
  margin: 0 0 30px;
  color: #aaa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .23em;
}

.members-intro h1 {
  margin: 0;
  font-size: clamp(55px, 6.1vw, 108px);
  line-height: .91;
  letter-spacing: -.075em;
  font-weight: 900;
}

.accent {
  color: var(--accent);
}

.intro-description {
  max-width: 520px;
  margin: 42px 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.intro-description.secondary {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.intro-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

/* PANNELLO DI ACCESSO */

.login-section {
  width: 100%;
  min-width: 0;
}

.login-panel {
  position: relative;
  padding: clamp(26px, 3.5vw, 52px);
  border: 1px solid #363636;
  background:
    linear-gradient(
      135deg,
      rgba(255, 87, 28, .045),
      transparent 38%
    ),
    #111;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .35);
}

.login-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 90px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--red),
    var(--orange)
  );
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid #303030;
  color: #888;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c2bdb6;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 87, 28, .5);
}

.login-heading {
  padding: 50px 0 35px;
}

.login-symbol {
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: 35px;
}

.login-symbol span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
}

.login-symbol span:first-child {
  transform: rotate(45deg);
}

.login-symbol span:nth-child(2) {
  transform: rotate(-45deg);
}

.login-symbol i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid var(--accent);
  background: #111;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 28px rgba(255, 87, 28, .25);
}

.login-heading .eyebrow {
  margin: 0 0 17px;
}

.login-heading h2 {
  margin: 0;
  font-size: clamp(36px, 3.5vw, 58px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}

.login-heading > p:last-child {
  max-width: 370px;
  margin: 19px 0 0;
  color: #aaa;
  font-size: 14px;
  line-height: 1.65;
}

/* CAMPI */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field label {
  color: #c9c4bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.form-field input {
  display: block;
  width: 100%;
  min-height: 59px;
  padding: 0 18px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #171717;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition:
    border-color .25s,
    background .25s,
    box-shadow .25s;
}

.form-field input::placeholder {
  color: #777;
}

.form-field input:focus {
  border-color: var(--accent);
  background: #1b1b1b;
  box-shadow: 0 0 0 3px rgba(255, 87, 28, .09);
}

.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.password-toggle {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.password-toggle:hover {
  color: #ff945b;
}

/* PULSANTE ACCESSO */

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  min-height: 65px;
  margin-top: 5px;
  padding: 18px 21px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #080808;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-align: left;
  transition:
    background .25s,
    transform .25s,
    opacity .25s;
}

.login-submit:not(:disabled):hover {
  background: #ff814c;
  transform: translateY(-2px);
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.submit-arrow {
  font-size: 23px;
  line-height: 1;
}

.login-notice {
  margin: -5px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}

/* ASSISTENZA */

.login-bottom {
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid #303030;
}

.access-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.access-icon {
  color: var(--accent);
  font-size: 19px;
}

.access-note p {
  margin: 0;
  color: #999;
  font-size: 12px;
  line-height: 1.65;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-bottom: 7px;
  border-bottom: 1px solid #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  transition:
    color .25s,
    border-color .25s;
}

.support-link span {
  color: var(--accent);
  font-size: 17px;
}

.support-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.panel-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 17px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

/* FOOTER */

.members-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 74px;
  padding: 25px clamp(22px, 4vw, 68px);
  border-top: 1px solid #252525;
  color: #888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.members-footer a {
  color: var(--text);
  transition: color .25s;
}

.members-footer a:hover {
  color: var(--accent);
}

.members-footer a span {
  color: var(--accent);
  margin-left: 8px;
}

/* TABLET */

@media (max-width: 1050px) {
  .members-layout {
    grid-template-columns: 1fr;
    gap: 55px;
    max-width: 760px;
  }

  .members-intro {
    min-height: auto;
  }

  .intro-content {
    padding: 65px 0 50px;
  }

  .members-intro h1 {
    font-size: clamp(64px, 10vw, 100px);
  }

  .login-panel {
    padding: clamp(30px, 6vw, 52px);
  }
}

/* SMARTPHONE */

@media (max-width: 600px) {
  .members-header {
    min-height: 72px;
  }

  .brand-name {
    font-size: 13px;
  }

  .header-label,
  .header-separator {
    display: none;
  }

  .header-members {
    font-size: 9px;
  }

  .members-layout {
    padding: 60px 22px 80px;
    gap: 45px;
  }

  .intro-content {
    padding: 55px 0 42px;
  }

  .members-intro h1 {
    font-size: clamp(49px, 11.8vw, 75px);
  }

  .intro-description {
    margin-top: 30px;
    font-size: 17px;
  }

  .intro-description.secondary {
    font-size: 14px;
  }

  .intro-footer {
    font-size: 9px;
  }

  .login-panel {
    padding: 25px 21px 30px;
  }

  .panel-top {
    font-size: 8px;
  }

  .login-heading {
    padding-top: 38px;
  }

  .login-heading h2 {
    font-size: clamp(34px, 8vw, 46px);
  }

  .form-field input {
    min-height: 56px;
  }

  .login-submit {
    font-size: 10px;
  }

  .panel-caption {
    font-size: 8px;
  }

  .members-footer {
    font-size: 9px;
  }
}

/* SCHERMI MOLTO PICCOLI */

@media (max-width: 360px) {
  .header-members {
    font-size: 8px;
  }

  .members-intro h1 {
    font-size: 46px;
  }

  .panel-status {
    font-size: 8px;
  }

  .login-panel {
    padding-left: 17px;
    padding-right: 17px;
  }
}

/* MOVIMENTO RIDOTTO */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .001ms !important;
  }
}
