/* GAY IPTV — sign-in, redesign 2026-11 */
.gx-login {
  --bg: #0a0910; --surface: rgba(19,17,27,.86); --surface-2: #1a1724; --line: rgba(255,255,255,.09);
  --tx: #f3f1f9; --tx-2: #aaa5bb; --tx-3: #75718a; --pr: #8b5cf6; --pr-soft: rgba(139,92,246,.18);
  --ok: #34d399; --er: #f87171;
  --grad: linear-gradient(135deg,#7c3aed 0%,#a855f7 45%,#06b6d4 100%);
  --rainbow: linear-gradient(90deg,#ff4d6d,#ff9f1c,#ffd60a,#2ec4b6,#3a86ff,#8338ec);
  color-scheme: dark;
}
.gx-login.light {
  --bg: #f5f4fa; --surface: rgba(255,255,255,.92); --surface-2: #f2f0f8; --line: rgba(20,16,40,.1);
  --tx: #16131f; --tx-2: #5f5a72; --tx-3: #918ca3; --pr: #7c3aed; --pr-soft: rgba(124,58,237,.12);
  --ok: #059669; --er: #dc2626; color-scheme: light;
}
html, .gx-login { height: 100%; }
.gx-login, .gx-login * { box-sizing: border-box; }
.gx-login { margin: 0; background: var(--bg); color: var(--tx); font: 400 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.gx-login h1, .gx-login h2, .gx-login p { margin: 0; }
.gx-login button, .gx-login input { font: inherit; color: inherit; }

.lg { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr minmax(420px, 520px); overflow: hidden; }
.lg-bg { position: absolute; inset: 0; z-index: 0; }
.lg-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: lgZoom 24s ease-in-out infinite alternate; }
@keyframes lgZoom { to { transform: scale(1.12); } }
.lg-shade { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(10,9,16,.15) 0%, rgba(10,9,16,.55) 55%, rgba(10,9,16,.92) 100%),
  radial-gradient(800px 500px at 20% 110%, rgba(124,58,237,.45), transparent 70%); }
.gx-login.light .lg-shade { background: linear-gradient(90deg, rgba(20,16,40,.05) 0%, rgba(20,16,40,.35) 60%, rgba(245,244,250,.85) 100%), radial-gradient(800px 500px at 20% 110%, rgba(124,58,237,.35), transparent 70%); }

.lg-side { position: relative; z-index: 2; display: flex; align-items: flex-end; padding: 56px; }
.lg-pitch { max-width: 520px; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.lg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; }
.lg-live { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: lgBlink 1.6s infinite; }
@keyframes lgBlink { 50% { opacity: .35; } }
.lg-pitch h1 { margin-top: 18px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.lg-pitch p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 420px; }

.lg-panel { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 40px 40px 24px; }
.lg-card {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding: 36px 32px 30px;
  border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.lg-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px; background: var(--rainbow); }
.lg-logo { display: inline-block; margin-bottom: 26px; }
.lg-logo img { display: block; height: 42px; border-radius: 10px; }
.lg-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.lg-sub { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--tx-2); }
.lg-sub strong { color: var(--tx); font-weight: 700; }

.lg-alert { margin-top: 18px; padding: 11px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.lg-alert.is-error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: var(--er); }
.lg-alert.is-ok { background: rgba(52,211,153,.10); border: 1px solid rgba(52,211,153,.3); color: var(--ok); }

.lg-form { display: flex; flex-direction: column; margin-top: 22px; }
.lg-label { margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--tx-2); }
.lg-input-wrap { position: relative; }
.lg-input-wrap svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--tx-3); pointer-events: none; }
.lg-form input[type="email"] {
  width: 100%; height: 54px; padding: 0 16px 0 46px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--tx); font-size: 16px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.lg-form input::placeholder { color: var(--tx-3); }
.lg-form input:focus { border-color: var(--pr); box-shadow: 0 0 0 4px var(--pr-soft); }
.otp-input {
  width: 100%; height: 64px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--tx); text-align: center; outline: none;
  font: 800 30px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .5em; text-indent: .5em;
  transition: border-color .18s, box-shadow .18s;
}
.otp-input::placeholder { color: var(--tx-3); letter-spacing: .5em; }
.otp-input:focus { border-color: var(--pr); box-shadow: 0 0 0 4px var(--pr-soft); }
.lg-btn {
  margin-top: 14px; height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px; background: var(--grad); color: #fff !important; font-size: 15px; font-weight: 750;
  cursor: pointer; box-shadow: 0 12px 30px rgba(124,58,237,.4); transition: transform .18s, box-shadow .18s, opacity .18s;
}
.lg-btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .18s; }
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(124,58,237,.5); }
.lg-btn:hover svg { transform: translateX(3px); }
.lg-btn:active { transform: scale(.98); }
.lg-btn.is-loading { opacity: .7; cursor: progress; }
.lg-btn.is-loading svg { animation: lgNudge .8s infinite; }
@keyframes lgNudge { 50% { transform: translateX(4px); } }

.resend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.resend-row form { margin: 0; }
.back-link, .resend-btn { padding: 6px 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.back-link { color: var(--tx-2); }
.back-link:hover { color: var(--tx); }
.resend-btn { color: var(--pr); }
.resend-btn:disabled { color: var(--tx-3); cursor: default; }
.resend-timer { font-variant-numeric: tabular-nums; }

.lg-foot { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--tx-3); }
.lg-foot a { color: var(--tx-2); text-decoration: none; }
.lg-foot a strong { color: var(--pr); }
.lg-foot a:hover strong { text-decoration: underline; }
.gx-login :focus-visible { outline: 2px solid var(--pr); outline-offset: 2px; }

@media (max-width: 960px) {
  .lg { grid-template-columns: 1fr; }
  .lg-side { display: none; }
  .lg-shade { background: linear-gradient(180deg, rgba(10,9,16,.35) 0%, rgba(10,9,16,.88) 55%, rgba(10,9,16,.97) 100%); }
  .gx-login.light .lg-shade { background: linear-gradient(180deg, rgba(245,244,250,.2) 0%, rgba(245,244,250,.9) 55%, rgba(245,244,250,.98) 100%); }
  .lg-panel { justify-content: flex-end; padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); min-height: 100vh; min-height: 100dvh; }
  .lg-card { padding: 30px 22px 24px; border-radius: 24px; }
}
@media (max-height: 640px) and (max-width: 960px) { .lg-panel { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .gx-login * { animation: none !important; transition: none !important; } }
