/* IPTV PLAYER PRO v18 — MODERN ANIMATED CINEMA-SAAS LOGIN */
:root {
  --bg: #090b12;
  --card: rgba(16, 20, 32, 0.78);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --red: #e50914;
  --red-hover: #ff1f2d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }
html, body {
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.auth-bg-img {
  position: fixed; inset: 0;
  background: url('../bg.jpg') center/cover no-repeat;
  opacity: 0.14; filter: blur(8px) saturate(1.1); transform: scale(1.06); z-index: 0;
}
.auth-aurora { position: fixed; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(85px); opacity: 0.42; will-change: transform; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #e50914 0%, transparent 70%); top: -160px; left: -120px; animation: floatOrb1 14s ease-in-out infinite alternate; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, #4f46e5 0%, transparent 70%); bottom: -160px; right: -120px; animation: floatOrb2 16s ease-in-out infinite alternate; }
.orb-3 { width: 340px; height: 340px; background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); top: 42%; left: 55%; opacity: 0.24; animation: floatOrb3 18s ease-in-out infinite alternate; }
@keyframes floatOrb1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(90px, 70px) scale(1.16); } }
@keyframes floatOrb2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-80px, -60px) scale(1.15); } }
@keyframes floatOrb3 { from { transform: translate(-40px, 20px) scale(0.95); } to { transform: translate(40px, -50px) scale(1.12); } }
.auth-grid-overlay {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.9), transparent 80%);
}
.auth-wrap { position: relative; z-index: 5; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--card); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border); border-radius: 22px; padding: 32px 30px 26px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: cardReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardReveal { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-brand-top { margin-bottom: 18px; }
.auth-logo-img { max-height: 46px; max-width: 220px; object-fit: contain; display: block; }
.brand-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: 0.6px; color: #fff; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #e50914, #f43f5e); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 6px 20px rgba(229, 9, 20, 0.48); }
.force-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.45); color: #fcd34d; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.auth-card h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.subtitle { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 5px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-tabs a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; padding: 9px 6px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.18s ease; white-space: nowrap; }
.auth-tabs a:hover { color: #fff; }
.auth-tabs a.active { background: linear-gradient(135deg, #e50914, #dc2626); color: #fff; box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35); }
.alert-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.45; margin-bottom: 16px; animation: alertShake 0.35s ease; }
@keyframes alertShake { 0%, 100% { transform: translateX(0); } 22% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.alert-box i { margin-top: 2px; font-size: 15px; flex-shrink: 0; }
.alert-box.err { background: rgba(239, 68, 68, 0.16); border: 1px solid rgba(239, 68, 68, 0.5); color: #fecaca; }
.alert-box.ok { background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.5); color: #a7f3d0; animation: none; }
.verify-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.vpill { padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all 0.16s ease; }
.vpill.active { background: rgba(99, 102, 241, 0.22); border-color: rgba(129, 140, 248, 0.65); color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .field-ico { position: absolute; left: 13px; color: #64748b; font-size: 13.5px; pointer-events: none; transition: color 0.16s; }
.input-wrap input { width: 100%; background: rgba(10, 13, 22, 0.85); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 11px; padding: 12px 42px 12px 39px; color: #ffffff; font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.18s, box-shadow 0.18s, background 0.18s; }
.input-wrap input:focus { border-color: #ef4444; background: rgba(15, 19, 32, 0.96); box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2); }
.input-wrap:focus-within .field-ico { color: #f87171; }
.input-wrap.has-error input { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22); }
.eye-toggle { position: absolute; right: 8px; width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; color: #94a3b8; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color 0.15s, background 0.15s; }
.eye-toggle:hover, .eye-toggle.is-visible { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.auth-options-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; flex-wrap: wrap; }
.remember-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: #cbd5e1; user-select: none; }
.remember-switch input { display: none; }
.sw-track { width: 38px; height: 21px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); position: relative; transition: background 0.2s ease; }
.sw-thumb { position: absolute; top: 2.5px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.remember-switch input:checked + .sw-track { background: var(--red); }
.remember-switch input:checked + .sw-track .sw-thumb { transform: translateX(16px); }
.link-change-pass { font-size: 12.5px; font-weight: 700; color: #93c5fd; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color 0.15s; }
.link-change-pass:hover { color: #ffffff; text-decoration: underline; }
.btn-submit { width: 100%; padding: 13px 18px; border: none; border-radius: 12px; background: linear-gradient(135deg, #e50914 0%, #c80812 100%); color: #ffffff; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 10px 26px rgba(229, 9, 20, 0.38); transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(229, 9, 20, 0.52); filter: brightness(1.06); }
.btn-submit:active { transform: translateY(0); }
.auth-foot-links { margin-top: 14px; text-align: center; }
.auth-foot-links a { color: var(--muted); font-size: 13px; text-decoration: none; font-weight: 600; }
.auth-foot-links a:hover { color: #fff; }
.auth-legal-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: #94a3b8; line-height: 1.45; }
.auth-legal-note i { color: #64748b; margin-top: 2px; flex-shrink: 0; }
@media (max-width: 520px) {
  .auth-card { padding: 24px 18px 20px; border-radius: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .auth-tabs a { font-size: 11.5px; padding: 8px 4px; }
}

/* V19: 4-Method Recovery Pills, 6-Digit Code UI & International Phone Mask */
.verify-pills-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}
.code-sent-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.code-6-input {
  text-align: center;
  letter-spacing: 9px;
  font-size: 20px !important;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}
.code-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.link-btn-sm {
  border: none;
  background: transparent;
  color: #93c5fd;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.link-btn-sm:hover { color: #ffffff; text-decoration: underline; }

/* ==================== INTERNATIONAL WHATSAPP COUNTRY PICKER & MASK (DARK THEME) ==================== */
.wa-phone-widget {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 13, 22, 0.85);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.wa-phone-widget:focus-within {
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}
.wa-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 11px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px 0 0 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.wa-country-btn:hover { background: rgba(255, 255, 255, 0.1); }
.wa-flag { font-size: 16px; line-height: 1; }
.wa-dial { font-size: 12.5px; color: #cbd5e1; }
.wa-caret { font-size: 9px; color: #94a3b8; }
.wa-visible-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 11px 12px !important;
  color: #ffffff !important;
  font-size: 14px;
  outline: none;
}
.wa-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(290px, 86vw);
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.82);
  z-index: 160;
  overflow: hidden;
}
.wa-dd-menu.open { display: block; }
.wa-dd-search-wrap {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.wa-dd-search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 12px;
}
.wa-dd-search {
  width: 100%;
  background: #0b0e17;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 10px 7px 30px;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
}
.wa-dd-search:focus { border-color: #e50914; }
.wa-dd-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
}
.wa-dd-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.wa-dd-opt:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wa-dd-opt.active { background: rgba(229, 9, 20, 0.28); color: #fff; }
.wa-opt-l { display: inline-flex; align-items: center; gap: 8px; }
.wa-opt-d { font-size: 12px; color: #94a3b8; font-weight: 700; }
