/* Login — black header, light content by default */
.theme-auth {
  background: var(--bg) !important;
}
.content-wrap {
  width: min(1420px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.auth-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.auth-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  color: var(--header-text);
}
.auth-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-header__brand {
  display: inline-flex;
  align-items: center;
}
.auth-header__aside {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--header-muted);
}
.auth-header__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
}
.auth-hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.auth-hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #d8dbe2;
}
.auth-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  opacity: 0.35;
  filter: grayscale(0.15) contrast(1.02);
}
.auth-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      var(--bg) 30%,
      rgba(244, 245, 247, 0.88) 48%,
      rgba(244, 245, 247, 0.35) 68%,
      transparent 100%
    ),
    linear-gradient(180deg, rgba(244, 245, 247, 0.2) 0%, transparent 40%, rgba(244, 245, 247, 0.55) 100%);
}
[data-theme="dark"] .auth-hero__media {
  background: #000;
}
[data-theme="dark"] .auth-hero__media img {
  opacity: 0.72;
  filter: grayscale(0.2) contrast(1.05);
}
[data-theme="dark"] .auth-hero__media::after {
  background:
    linear-gradient(
      90deg,
      #0a0a0b 0%,
      #0a0a0b 28%,
      rgba(10, 10, 11, 0.88) 42%,
      rgba(10, 10, 11, 0.35) 62%,
      rgba(10, 10, 11, 0.15) 100%
    ),
    linear-gradient(180deg, rgba(10, 10, 11, 0.15) 0%, transparent 35%, rgba(10, 10, 11, 0.55) 100%);
}
.auth-hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.auth-panel {
  width: min(400px, 100%);
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
[data-theme="dark"] .auth-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.gate__head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.gate__product {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8102e;
}
.gate__title {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 2.55rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.gate__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.gate-form {
  display: grid;
  gap: 14px;
}
.gate-field {
  display: grid;
  gap: 7px;
}
.gate-field span {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.gate-field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  padding: 0 14px;
  outline: none;
  font-family: "Barlow", sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gate-field input:focus {
  border-color: var(--text);
  background: var(--bg-elev);
}
.gate-go {
  margin-top: 4px;
  height: 50px;
  border: 0;
  background: #c8102e;
  color: #fff;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.gate-go:hover {
  background: #a50d25;
}
.auth-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.auth-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 0 22px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.access-demo {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.access-demo summary {
  cursor: pointer;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}
.access-demo summary::-webkit-details-marker {
  display: none;
}
.access-demo ul {
  margin: 8px 0 0;
  padding-left: 1rem;
}

.gate-install {
  margin-top: 1.25rem;
}

.gate-install__card {
  display: grid;
  gap: 0.75rem;
}

.gate-install__btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

/* display:flex pe buton anula atributul hidden — forțăm ascunderea */
.gate-install__btn[hidden],
.gate-install__btn.is-off {
  display: none !important;
}

.gate-install__btn:hover {
  border-color: var(--text);
  background: var(--bg-elev);
}

.gate-install__ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #0a0a0b;
  color: #fff;
}

.gate-install__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.gate-install__copy strong {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
}

.gate-install__copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.gate-install__preview {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: #0a0a0b;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

.gate-install__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gate-install__tip,
.pwa-guide {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.pwa-guide.is-open {
  border-color: color-mix(in srgb, #c8102e 28%, var(--line));
}

.pwa-guide__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
}

.pwa-guide__lead {
  margin: 0.35rem 0 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.pwa-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.pwa-guide__step {
  margin: 0;
  padding: 0;
}

.pwa-guide__copy {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.pwa-guide__n {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: #0a0a0b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.pwa-guide__copy strong {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  color: var(--text);
}

.pwa-guide__copy p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.pwa-guide__shot {
  margin: 0.65rem 0 0 2.2rem;
  border: 1px solid var(--line);
  background: #0a0a0b;
  overflow: hidden;
  max-width: 220px;
}

.pwa-guide__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.pwa-guide__note {
  margin: 0.95rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.pwa-guide__note strong,
.pwa-guide__android strong {
  color: var(--text);
}

.pwa-guide__android {
  margin-top: 0.75rem;
  font-size: 0.86rem;
}

.pwa-guide [data-pwa-guide][hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  .pwa-guide__shot {
    margin-left: 0;
    max-width: 100%;
  }
}

.theme-auth .alert {
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(214, 69, 69, 0.45);
  border-bottom: 1px solid rgba(214, 69, 69, 0.45);
  font-size: 0.92rem;
  color: #a50d25;
}
[data-theme="dark"] .theme-auth .alert {
  color: #ffb4b4;
}
@media (max-width: 900px) {
  .content-wrap {
    width: min(1420px, calc(100% - 32px));
  }
  .auth-hero__media {
    opacity: 0.55;
  }
  .auth-hero__media::after {
    background: linear-gradient(180deg, rgba(244, 245, 247, 0.78), rgba(244, 245, 247, 0.96));
  }
  [data-theme="dark"] .auth-hero__media::after {
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.78), rgba(10, 10, 11, 0.94));
  }
  .auth-hero__inner {
    align-items: center;
    justify-content: center;
    padding: 28px 0 36px;
  }
  .auth-panel {
    width: min(420px, 100%);
    margin-inline: auto;
  }
  [data-theme="dark"] .auth-panel {
    width: min(400px, 100%);
  }
  .gate__head {
    text-align: center;
  }
  .gate__title {
    font-size: clamp(2.1rem, 9vw, 2.55rem);
  }
  .gate-install__preview {
    max-width: none;
    width: 100%;
  }
  .auth-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  .access-demo {
    text-align: center;
  }
  .access-demo ul {
    padding-left: 0;
    list-style-position: inside;
  }
  .auth-header__aside > span:not(.auth-header__sep) {
    display: none;
  }
  .auth-header__sep {
    display: none;
  }
}
