/* ITS WebAR Studio account pages — shared dark navy / cyan design */
:root {
  --member-bg: #020d1b;
  --member-panel: #071a2d;
  --member-panel-deep: #050f1d;
  --member-text: #f4f9ff;
  --member-muted: #a9bfd2;
  --member-cyan: #13dfff;
  --member-blue: #087cff;
  --member-line: rgba(91, 177, 220, 0.25);
}

body {
  background: var(--member-bg);
  color: var(--member-text);
}

/* Account header — override homepage absolute positioning */
.topbar {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  box-sizing: border-box;
  height: 68px;
  min-height: 68px;
  background: rgba(2, 13, 27, 0.97) !important;
  border-bottom: 1px solid var(--member-line) !important;
  backdrop-filter: blur(14px);
}

.topbar .logo-symbol {
  border-color: #d8efff;
  color: #fff;
}

.topbar .logo-text {
  color: #f5faff;
}

.member-toplinks {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar .underlink {
  color: #eaf7ff;
  border-bottom-color: var(--member-cyan);
  font-size: 12px;
}

/* Registration page layout */
.membership-wrap {
  width: min(1320px, calc(100% - 56px));
  margin: 34px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(540px, 1fr);
  gap: 30px;
  align-items: stretch;
  min-height: 650px;
}

.membership-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 650px;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid #10436a;
  border-radius: 10px;
  background: #03172b;
}

.membership-intro::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(2, 13, 27, 0.96) 0%,
      rgba(2, 13, 27, 0.82) 44%,
      rgba(2, 13, 27, 0.22) 100%
    ),
    url("/assets/its-webar-studio-hero.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.8);
  transform: scale(1.02);
}

.membership-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 76% 58%,
      rgba(0, 183, 255, 0.2),
      transparent 42%
    ),
    linear-gradient(0deg, rgba(0, 10, 22, 0.6), transparent 50%);
}

.membership-kicker {
  font:
    500 11px "DM Mono",
    monospace;
  letter-spacing: 0.14em;
  color: var(--member-cyan);
  text-transform: uppercase;
  margin: 0 0 19px;
}

.membership-intro h1 {
  font:
    600 clamp(48px, 5.5vw, 76px)/0.96 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.075em;
  margin: 0 0 22px;
  color: #f8fbff;
}

.membership-intro h1 em {
  color: var(--member-cyan);
  font-style: normal;
}

.membership-intro > p:last-of-type {
  color: #d2e4f1;
  line-height: 1.8;
  font-size: 14px;
  max-width: 410px;
  margin: 0;
}

.membership-features {
  display: flex;
  gap: 0;
  margin-top: 36px;
  max-width: 450px;
  border-top: 1px solid #55c8f44a;
  border-bottom: 1px solid #55c8f44a;
}

.membership-features span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 17px 12px;
  color: #e9f8ff;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  border-right: 1px solid #55c8f44a;
}

.membership-features span:last-child {
  border: 0;
}

.membership-features b {
  font-size: 25px;
  line-height: 1;
  color: var(--member-cyan);
  font-weight: 400;
  text-shadow: 0 0 14px #13dfff66;
}

/* Registration and sign-in panels */
.membership-card {
  align-self: center;
  min-width: 0;
  background: linear-gradient(145deg, #0a1d31 0%, #061424 100%);
  color: var(--member-text);
  border: 1px solid rgba(48, 164, 218, 0.34);
  border-radius: 10px;
  padding: clamp(23px, 2.5vw, 36px);
  box-shadow:
    0 24px 75px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.membership-card .membership-kicker {
  color: var(--member-cyan);
  margin-bottom: 7px;
}

.membership-card h1,
.membership-card h2 {
  font:
    600 clamp(27px, 2.6vw, 36px)/1.05 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.055em;
  margin: 0 0 20px;
  color: #f8fbff;
}

.membership-card > p:not(.membership-kicker) {
  color: #b8ccdc;
}

.membership-card form {
  display: grid;
  gap: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.membership-card label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #e6f1fa;
}

.membership-card input:not([type="checkbox"]),
.membership-card select,
.membership-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #31516c;
  background: #061321;
  padding: 10px 11px;
  border-radius: 5px;
  color: #f4f9ff;
  font:
    12px "Manrope",
    Arial,
    sans-serif;
  min-height: 39px;
  color-scheme: dark;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.membership-card input::placeholder,
.membership-card textarea::placeholder {
  color: #7892a8;
  opacity: 1;
}

.membership-card input:focus,
.membership-card select:focus,
.membership-card textarea:focus {
  outline: none;
  border-color: var(--member-cyan);
  box-shadow: 0 0 0 3px rgba(19, 223, 255, 0.12);
  background: #081a2b;
}

.membership-card textarea {
  resize: vertical;
  min-height: 76px;
}

.membership-card small,
.optional {
  color: #8ea8bd;
  font-size: 9px;
  font-weight: 400;
}

.membership-card fieldset {
  border: 0;
  border-top: 1px solid var(--member-line);
  padding: 11px 0 0;
  margin: 0;
}

.membership-card legend {
  padding: 0 9px 0 0;
  font-size: 11px;
  font-weight: 800;
  color: #e6f1fa;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 10px;
  margin-top: 7px;
}

.membership-card .check-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  color: #d6e5f1;
}

.membership-card input[type="checkbox"] {
  accent-color: var(--member-cyan);
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin: 0;
}

.consent-box {
  border-top: 1px solid var(--member-line);
  padding-top: 11px;
  display: grid;
  gap: 9px;
}

.consent-box a,
.membership-login a {
  color: var(--member-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.membership-submit {
  border: 1px solid #13c8f4;
  border-radius: 5px;
  padding: 13px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(105deg, #05b9d9, #087cff);
  color: white;
  font:
    700 12px "Manrope",
    Arial,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 166, 255, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.membership-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 26px rgba(0, 190, 255, 0.3);
  filter: brightness(1.07);
}

.membership-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-message {
  min-height: 16px;
  margin: 0;
  font-size: 11px;
  color: #55e5bd;
}

.form-message.error {
  color: #ff8e91;
}

.membership-login {
  font-size: 11px;
  color: #a9bfd2;
  margin: 13px 0 0;
}

.demo-note {
  margin: 13px 0 0;
  padding: 9px 11px;
  background: rgba(91, 177, 220, 0.09);
  border-left: 2px solid var(--member-cyan);
  color: #a9bfd2;
  font-size: 9px;
  line-height: 1.55;
}

/* Login page — same two-column composition */
.login-wrap {
  width: min(1320px, calc(100% - 56px));
  margin: 34px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, 1fr);
  gap: 30px;
  align-items: stretch;
  min-height: 650px;
}

.login-intro {
  min-height: 650px;
}

.login-intro h1 {
  max-width: 520px;
}

.login-wrap .membership-card {
  width: 100%;
  max-width: 620px;
  justify-self: center;
  padding: clamp(30px, 3.5vw, 48px);
}

.login-wrap .membership-card > p:not(.membership-kicker) {
  color: #b8ccdc;
  line-height: 1.7;
}

.login-wrap form {
  margin-top: 25px;
  gap: 17px;
}

.login-wrap form > label {
  gap: 8px;
  font-size: 12px;
}

.login-wrap .membership-card input:not([type="checkbox"]) {
  min-height: 46px;
  font-size: 13px;
}

.login-wrap .membership-submit {
  min-height: 47px;
  margin-top: 3px;
}

.login-wrap .membership-login {
  margin-top: 22px;
}

/* Footer */
.membership-footer {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--member-line);
  display: flex;
  justify-content: space-between;
  color: #7895ad;
  font-size: 10px;
}

.membership-footer a {
  color: #a9d5ef;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tablet */
@media (max-width: 1050px) {
  .membership-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 18px;
  }

  .login-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 18px;
  }

  .membership-intro {
    padding: 28px;
  }

  .membership-card {
    padding: 22px;
  }

  .interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile and smaller screens */
@media (max-width: 800px) {
  .membership-wrap,
  .login-wrap {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 32px));
    margin: 20px auto 35px;
    gap: 16px;
    min-height: 0;
  }

  .membership-intro,
  .login-intro {
    min-height: 330px;
    padding: 30px;
  }

  .membership-intro h1 {
    font-size: 54px;
  }

  .membership-intro::before {
    background-position: center 58%;
  }

  .membership-card {
    align-self: stretch;
  }

  .login-wrap .membership-card {
    max-width: none;
  }

  .membership-footer {
    width: calc(100% - 32px);
  }
}

/* Small mobile screens */
@media (max-width: 520px) {
  .topbar {
    padding-inline: 16px !important;
  }

  .topbar .logo-text {
    font-size: 12px;
  }

  .member-toplinks {
    gap: 9px;
  }
}

/* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .membership-submit {
      transition: none !important;
    }
  }

  /* ITS LIGHT ACCOUNT THEME — applies to register and sign-in only */
  :root {
    color-scheme: light;
    --member-bg: #ffffff;
    --member-panel: #ffffff;
    --member-panel-deep: #f4f6f8;
    --member-text: #191d21;
    --member-muted: #59636d;
    --member-cyan: #176fc1;
    --member-blue: #176fc1;
    --member-line: #d8dfe5;
  }

  html,
  body {
    background: #ffffff !important;
    color: #191d21 !important;
  }

  .topbar {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid #d8dfe5 !important;
    color: #191d21 !important;
  }

  .topbar .logo-symbol {
    border-color: #303941 !important;
    color: #191d21 !important;
  }

  .topbar .logo-text,
  .topbar .underlink {
    color: #252d34 !important;
  }

  .topbar .underlink {
    border-bottom-color: #176fc1 !important;
  }

  /* Keep the existing room photograph, but remove the heavy navy tint. */
  .membership-intro {
    border-color: #d8dfe5 !important;
    background: #edf2f5 !important;
  }

  .membership-intro::before {
    background-image:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.72) 44%,
        rgba(255, 255, 255, 0.18) 100%
      ),
      url("/assets/its-webar-studio-hero.png") !important;
    background-size: cover !important;
    background-position: center !important;
    filter: none !important;
  }

  .membership-intro::after {
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.22),
      transparent 58%
    ) !important;
  }

  .membership-kicker,
  .membership-card .membership-kicker {
    color: #176fc1 !important;
  }

  .membership-intro h1,
  .membership-card h1,
  .membership-card h2 {
    color: #191d21 !important;
  }

  .membership-intro h1 em {
    color: #176fc1 !important;
  }

  .membership-intro > p:last-of-type {
    color: #46515a !important;
    font-size: 15px;
    line-height: 1.75;
  }

  .membership-features {
    border-top-color: #cbd5de !important;
    border-bottom-color: #cbd5de !important;
  }

  .membership-features span {
    color: #303a42 !important;
    border-right-color: #cbd5de !important;
    font-size: 11px;
  }

  .membership-features b {
    color: #176fc1 !important;
    text-shadow: none !important;
  }

  .membership-card {
    background: #ffffff !important;
    color: #191d21 !important;
    border-color: #d8dfe5 !important;
    box-shadow: 0 14px 42px rgba(20, 35, 50, 0.07) !important;
  }

  .membership-card > p:not(.membership-kicker),
  .login-wrap .membership-card > p:not(.membership-kicker) {
    color: #59636d !important;
    font-size: 14px;
    line-height: 1.7;
  }

  .membership-card label,
  .membership-card legend {
    color: #303a42 !important;
    font-size: 12px;
  }

  .membership-card input:not([type="checkbox"]),
  .membership-card select,
  .membership-card textarea {
    border-color: #cbd5de !important;
    background: #fbfcfd !important;
    color: #191d21 !important;
    color-scheme: light !important;
    font-size: 14px !important;
  }

  .membership-card input::placeholder,
  .membership-card textarea::placeholder {
    color: #87919a !important;
  }

  .membership-card input:focus,
  .membership-card select:focus,
  .membership-card textarea:focus {
    border-color: #176fc1 !important;
    box-shadow: 0 0 0 3px rgba(23, 111, 193, 0.12) !important;
    background: #ffffff !important;
  }

  .membership-card small,
  .optional {
    color: #68737c !important;
  }

  .membership-card fieldset,
  .consent-box {
    border-color: #d8dfe5 !important;
  }

  .membership-card .check-option {
    color: #46515a !important;
    font-size: 11px;
  }

  .membership-card input[type="checkbox"] {
    accent-color: #176fc1 !important;
  }

  .consent-box a,
  .membership-login a {
    color: #176fc1 !important;
  }

  .membership-submit {
    border-color: #176fc1 !important;
    background: #176fc1 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(23, 111, 193, 0.14) !important;
    font-size: 13px !important;
  }

  .membership-submit:hover {
    background: #10599d !important;
  }

  .form-message {
    color: #147a55 !important;
  }
  .form-message.error {
    color: #b42318 !important;
  }

  .membership-login {
    color: #59636d !important;
    font-size: 13px !important;
  }

  .demo-note {
    background: #f0f5f8 !important;
    border-left-color: #176fc1 !important;
    color: #59636d !important;
    font-size: 11px !important;
  }

  .membership-footer {
    border-top-color: #d8dfe5 !important;
    color: #68737c !important;
  }

  .membership-footer a {
    color: #176fc1 !important;
  }
