:root {
  color-scheme: dark;
  --bg: #06080c;
  --panel: rgba(12, 16, 24, 0.86);
  --panel-strong: rgba(15, 20, 29, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 123, 18, 0.56);
  --text: #f5f7fb;
  --muted: rgba(235, 239, 246, 0.72);
  --accent: #ff7a18;
  --accent-strong: #ff9c39;
  --accent-shadow: rgba(255, 122, 24, 0.32);
  --danger: #ff7d7d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "SF Pro Display", "Helvetica Neue", sans-serif;
  background: #03060b;
  color: var(--text);
  overflow-x: hidden;
}

body::before,
body::after {
  display: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(24rem, 37vw);
  background:
    linear-gradient(90deg, rgba(3, 7, 12, 0.3) 0%, rgba(4, 8, 13, 0.4) 58%, rgba(7, 10, 16, 0.74) 100%),
    url("/shared/assets/images/wall/wall1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 8, 12, 0.14) 0%, rgba(5, 9, 14, 0.2) 42%, rgba(8, 11, 18, 0.3) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 11%
    );
  opacity: 1;
  mix-blend-mode: normal;
}

.login-showcase,
.login-panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.login-showcase {
  overflow: hidden;
  padding: clamp(2.5rem, 5vh, 5.5rem) clamp(1.5rem, 4.6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-backdrop {
  position: fixed;
  inset: 0;
  background: none;
}

.showcase-backdrop::before {
  content: "";
  position: fixed;
  inset: 0;
  background: none;
  opacity: 0;
}

.showcase-backdrop::after {
  content: "";
  position: fixed;
  inset: 0;
  background: none;
  filter: none;
}

.showcase-stage {
  position: fixed;
  width: min(52rem, 92%);
  height: min(46rem, 82vh);
  margin-left: clamp(5rem, 12vw, 13rem);
}

.showcase-posters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ember,
.glow-line {
  display: none;
}

.ember {
  background: radial-gradient(circle, rgba(255, 161, 90, 0.95), rgba(255, 112, 12, 0.28) 42%, transparent 72%);
  border-radius: 999px;
  filter: blur(2px);
}

.ember-a {
  left: 3%;
  bottom: 9%;
  width: 14rem;
  height: 14rem;
  opacity: 0.34;
}

.ember-b {
  right: 7%;
  top: 8%;
  width: 7rem;
  height: 7rem;
  opacity: 0.18;
}

.ember-c {
  right: 16%;
  top: 4%;
  width: 0.45rem;
  height: 0.45rem;
  box-shadow:
    1.7rem 0.6rem 0 rgba(255, 133, 31, 0.64),
    4.8rem 0.2rem 0 rgba(255, 133, 31, 0.44),
    7rem 1.4rem 0 rgba(255, 133, 31, 0.58),
    9.1rem 0.3rem 0 rgba(255, 133, 31, 0.35);
  opacity: 0.88;
}

.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 120, 20, 0.42), transparent);
  filter: blur(0.2px);
}

.glow-line-a {
  left: 0;
  bottom: 17%;
  width: 24rem;
  transform: rotate(-12deg);
}

.glow-line-b {
  right: -1rem;
  top: 12%;
  width: 15rem;
  transform: rotate(14deg);
}

.poster-card {
  position: absolute;
  width: clamp(8.5rem, 13vw, 15rem);
  aspect-ratio: 2 / 3;
  border-radius: 1.3rem;
  background-color: #10151d;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  filter: blur(0.3px);
  backdrop-filter: blur(6px);
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -4rem 4.8rem rgba(0, 0, 0, 0.28);
}

.poster-a { top: 0; left: -2%; transform: rotate(-14deg); }
.poster-b { top: 3%; left: 33%; transform: rotate(5deg); }
.poster-c { top: -2%; left: 65%; transform: rotate(-6deg); }
.poster-d { top: 48%; left: -10%; transform: rotate(10deg); }
.poster-e { top: 46%; left: 80%; transform: rotate(-16deg); }

.poster-a {
  background-image: url("/shared/assets/images/cover-provisoie/got.webp");
}

.poster-b {
  background-image: url("/shared/assets/images/cover-provisoie/one-piece.webp");
}

.poster-c {
  background-image: url("/shared/assets/images/cover-provisoie/charmed.webp");
}

.poster-d {
  background-image: url("/shared/assets/images/cover-provisoie/cube.webp");
}

.poster-e {
  background-image: url("/shared/assets/images/cover-provisoie/legacie.webp");
}

.showcase-copy {
  position: absolute;
  top: 76%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(34rem, 74%);
  max-width: min(34rem, 74%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-left: 0;
  padding: 0;
  text-align: center;
}

.showcase-logo {
  width: clamp(9rem, 18vw, 14.25rem);
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  filter: drop-shadow(0 24px 54px rgba(0, 0, 0, 0.52));
  -webkit-filter: drop-shadow(0px 0px 7px rgba(238, 130, 7, 0.705));
     filter: drop-shadow(0px 0px 7px rgba(197, 121, 7, 0.651));
}

.showcase-copy-body {
  position: relative;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  padding: 0.9rem 1.2rem 1rem;
}

.showcase-copy-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(34rem, 132%);
  height: 11.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 40%, rgba(0, 0, 0, 0.28) 68%, transparent 86%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.showcase-kicker {
  margin: 0 0 0.5rem;
  font-size: clamp(0.82rem, 0.96vw, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  text-shadow:
    0px 0px 20px rgb(0, 0, 0),
    0px 0px 20px rgb(0, 0, 0);
    -webkit-filter: drop-shadow(0px 0px 30px rgb(0, 0, 0));
    filter: drop-shadow(0px 0px 1px rgb(2, 2, 2));
}

.showcase-text {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  line-height: 1.6;
  color: var(--muted);
  text-shadow:
    0 18px 36px rgba(0, 0, 0, 0.82),
    0 4px 14px rgba(0, 0, 0, 0.58);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 2vw, 1.75rem);
  background: transparent;
}

.login-card {
  position: relative;
  width: min(100%, clamp(17.5rem, 20vw, 22.5rem));
  max-height: calc(100svh - clamp(2rem, 4vw, 4rem));
  overflow-y: auto;
  padding: clamp(0.85rem, 1vw, 1.2rem);
  border-radius: clamp(1rem, 1.4vw, 1.4rem);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(11, 15, 22, 0.92), rgba(8, 11, 18, 0.9));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(22px);
}

.auth-mode.is-hidden {
  display: none;
}

.auth-mode.is-visible {
  display: block;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0.95rem 0.95rem auto 0.95rem;
  height: 1px;
    background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,140,0,0.25) 50%,
      rgba(255,255,255,0.06) 100%
    );
  box-shadow:
    0 0 6px rgba(255,140,0,0.25),
    0 0 12px rgba(255,120,0,0.12);
  pointer-events: none;
}


.login-card-header h1 {
  margin: 0;
  font-size: clamp(1.32rem, 1.7vw, 1.9rem);
  line-height: 1.08;
}

.login-eyebrow {
  margin: 10 0 0.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.login-subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.38;
  font-size: clamp(0.74rem, 0.64vw, 0.8rem);
}

.login-status {
  margin-top: 1rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.login-status[data-tone="error"] {
  border-color: rgba(255, 125, 125, 0.4);
  color: #ffd9d9;
  background: rgba(126, 29, 29, 0.22);
}

.login-status[data-tone="success"] {
  border-color: rgba(68, 189, 120, 0.4);
  color: #defbe8;
  background: rgba(27, 92, 48, 0.22);
}

.login-form,
.helper-form {
  display: grid;
  gap: 1rem;
}

.login-form {
  margin-top: 0.95rem;
  gap: 0.62rem;
}

.login-field {
  display: grid;
  gap: 0.28rem;
}

.login-field span {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.login-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.022));
  color: var(--text);
  border-radius: 0.72rem;
  padding: 0.66rem 0.78rem;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-field input:focus {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 3.5rem;
}

.ghost-btn {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.05rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
}

.remember-row input {
  width: 0.82rem;
  height: 0.82rem;
  accent-color: rgba(255, 255, 255, 0.88);
}

.login-submit,
.secondary-submit {
  border: 0;
  border-radius: 0.82rem;
  padding: 0.66rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-submit {
  margin-top: 0.25rem;
  color: #fff;
  background:
    linear-gradient(90deg, #ff8a1e, #ff6a00 56%, #ff8f3f),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
}

.secondary-submit {
  color: #fff;
  background:
    linear-gradient(90deg, #ff8a1e, #ff6a00 56%, #ff8f3f),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-submit:disabled,
.secondary-submit:disabled,
.ghost-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.82rem 0 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,140,0,0.25) 50%,
      rgba(255,255,255,0.06) 100%
    );
  box-shadow:
    0 0 80px rgba(255, 140, 0, 0.733),
    0 0 80px rgba(255, 119, 0, 0.459);
}

.login-helpers {
  display: grid;
  gap: 0.6rem;
}

.helper-switch {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  color: var(--text);
  margin-top: 0.78rem;
  padding: 0.78rem 0.85rem;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.helper-switch.secondary {
  text-align: center;
}

.helper-card {
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  padding: 0.62rem 0.62rem 0.68rem;
}

.helper-card.is-hidden {
  display: none;
}

.helper-card summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.82rem;
}

.helper-card summary::-webkit-details-marker {
  display: none;
}

.helper-card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.helper-copy {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.74rem;
}

@media (max-width: 1120px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-shell::before {
    display: none;
  }

  .login-showcase {
    min-height: 42vh;
    align-items: center;
    justify-content: center;
  }

  .showcase-copy {
    max-width: 34rem;
    width: min(34rem, 100%);
    margin-top: 0;
    text-align: center;
  }

  .showcase-logo {
    margin-top: 0;
    margin-bottom: 0.9rem;
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-posters {
    inset: 0;
  }

  .showcase-stage {
    width: min(52rem, 92vw);
    margin-left: 0;
  }

  .login-panel {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 2.5rem;
  }

  .login-card {
    width: min(100%, 31rem);
    max-height: none;
    overflow: visible;
  }
}

@media (max-height: 860px) and (min-width: 1121px) {
  .login-showcase {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .login-card {
    max-height: calc(100svh - 1.5rem);
    padding: 1.35rem 1.45rem;
  }

  .login-card-header h1 {
    font-size: clamp(1.95rem, 3vw, 2.7rem);
  }

  .login-form {
    margin-top: 1.1rem;
  }

  .login-divider {
    margin: 1.15rem 0 0.95rem;
  }
}

@media (max-width: 720px) {
  .login-showcase {
    padding: 2.5rem 1.35rem 1.35rem;
    min-height: 34vh;
  }

  .poster-card {
    width: 9rem;
  }

  .ember-b,
  .glow-line-b {
    display: none;
  }

  .login-panel {
    padding: 1.35rem;
  }

  .login-card {
    padding: 1.45rem;
    border-radius: 1.35rem;
  }

  .showcase-logo {
    width: min(13.5rem, 58%);
  }
}
