/* Auth (Devise) — dark streaming look aligné StreamHub */

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(229, 9, 20, 0.18), transparent 45%),
    linear-gradient(180deg, #000 0%, #141414 100%);
}

.auth__panel {
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.75rem;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #fff;
}

.auth__panel h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.auth__subtitle {
  margin: 0 0 1.5rem;
  color: #b3b3b3;
  font-size: 0.95rem;
}

.auth .brand {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e50914;
}

.auth .brand a {
  color: inherit;
  text-decoration: none;
}

.auth-form .field {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #e5e5e5;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #2f2f2f;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}

.field--inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field--inline label {
  margin: 0;
}

.hint {
  display: block;
  margin: -0.15rem 0 0.4rem;
  color: #b3b3b3;
  font-size: 0.8rem;
}

.actions {
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: #e50914;
  color: #fff;
}

.btn--primary:hover {
  background: #f40612;
}

.btn--ghost {
  background: transparent;
  border-color: #333;
  color: #fff;
}

.auth-links {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.auth-links a {
  color: #e50914;
}

.error-messages {
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.2);
  color: #fecaca;
}

.error-messages h2 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}

.error-messages ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

/* Toasts — Netflix-like flash notifications */

.toast-stack {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(calc(100vw - 2rem), 26rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 4px 1fr auto;
  align-items: start;
  gap: 0.85rem;
  padding: 0.95rem 0.85rem 0.95rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(24, 24, 24, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  color: #fff;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.toast__accent {
  align-self: stretch;
  width: 4px;
  border-radius: 6px 0 0 6px;
  background: #e50914;
}

.toast--notice .toast__accent {
  background: #46d369;
}

.toast--alert .toast__accent {
  background: #e50914;
}

.toast__message {
  margin: 0;
  padding-top: 0.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: #f5f5f5;
}

.toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.toast__close svg {
  width: 0.95rem;
  height: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* Public landing — Netflix visual language + Zen IPTV product UX */

.landing-hero__media {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(229, 9, 20, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(70, 211, 105, 0.08), transparent 50%),
    linear-gradient(115deg, #050505 0%, #141414 42%, #1a0a0c 100%);
}

.landing-hero__veil {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, 0.92) 100%);
}

.landing-reveal {
  animation: landing-rise 0.7s ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

.landing-reveal--delay-1 { animation-delay: 120ms; }
.landing-reveal--delay-2 { animation-delay: 220ms; }
.landing-reveal--delay-3 { animation-delay: 320ms; }

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-platform {
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-platform:hover {
  border-color: rgba(229, 9, 20, 0.45);
  transform: translateY(-2px);
}

.landing-feature__visual {
  min-height: 22rem;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(229, 9, 20, 0.22), transparent 45%),
    linear-gradient(160deg, #101010, #070707);
}

.iphone {
  position: relative;
}

.iphone__frame {
  position: relative;
  width: min(100%, 14.5rem);
  aspect-ratio: 9 / 19.2;
  margin-inline: auto;
  padding: 0.55rem;
  border-radius: 2rem;
  background: linear-gradient(160deg, #2a2a2a, #0a0a0a);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.iphone__notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  z-index: 2;
  width: 38%;
  height: 0.7rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
}

.iphone__screen {
  height: 100%;
  overflow: hidden;
  border-radius: 1.55rem;
  background: #0b0b0b;
}

.iphone-ui {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem 0.85rem 0.9rem;
}

.iphone-ui__brand {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e50914;
}

.iphone-ui__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.iphone-ui__profiles {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.iphone-ui__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #e50914, #7a0a12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.iphone-ui__avatar--alt {
  background: linear-gradient(145deg, #46d369, #1a6b35);
}

.iphone-ui__avatar--soft {
  background: linear-gradient(145deg, #5b8def, #243a6b);
}

.iphone-ui__card,
.iphone-ui__alert {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.iphone-ui__chip {
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #e50914;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
}

.iphone-ui__line {
  display: block;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.iphone-ui__line--short {
  width: 55%;
}

.iphone-ui__alert-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #e50914;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
}

.iphone-ui__list,
.iphone-ui__rows {
  display: grid;
  gap: 0.45rem;
}

.iphone-ui__list span,
.iphone-ui__rows span {
  display: block;
  height: 2.1rem;
  border-radius: 0.45rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.iphone-ui__hero-poster {
  flex: 1;
  min-height: 7rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.75)),
    linear-gradient(135deg, #3a1014, #141414 55%, #1d2a18);
}

.iphone-ui__rows span:nth-child(2) {
  width: 78%;
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq__icon {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.legal-prose p {
  margin: 0 0 1rem;
}

.legal-prose p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal {
    animation: none;
  }

  .landing-platform {
    transition: none;
  }
}

