/* =============================================
   M2 Unified Login — Alive Edition
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --m2ul-font-display: 'Sora', sans-serif;
  --m2ul-font-body: 'Outfit', sans-serif;
  --m2ul-bg-deep: #04060e;
  --m2ul-bg-card: rgba(255, 255, 255, 0.04);
  --m2ul-border-subtle: rgba(255, 255, 255, 0.07);
  --m2ul-border-active: rgba(20, 184, 166, 0.6);
  --m2ul-text-primary: #f0f0f2;
  --m2ul-text-muted: rgba(240, 240, 242, 0.55);
  --m2ul-text-secondary: rgba(240, 240, 242, 0.78);
  --m2ul-accent-teal: #14b8a6;
  --m2ul-accent-cyan: #22d3ee;
  --m2ul-accent-blue: #0ea5e9;
  --m2ul-glow-teal: rgba(20, 184, 166, 0.15);
  --m2ul-radius-lg: 20px;
  --m2ul-radius-md: 14px;
  --m2ul-radius-pill: 999px;
  --m2ul-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
.m2ul-login-screen,
.m2ul-login-screen *,
.m2ul-login-screen *::before,
.m2ul-login-screen *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Full-screen Container --- */
.m2ul-login-screen {
  position: relative;
  display: flex;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100dvh;
  overflow: hidden;
  background: var(--m2ul-bg-deep);
  color: var(--m2ul-text-primary);
  font-family: var(--m2ul-font-body);
}

/* --- Animated Mesh Background --- */
.m2ul-login-screen::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 60% 50% at 15% 25%, rgba(20,184,166,.09), transparent 60%),
    radial-gradient(ellipse 55% 45% at 80% 70%, rgba(14,165,233,.07), transparent 55%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(99,102,241,.04), transparent 50%);
  animation: m2ul-mesh 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes m2ul-mesh {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(3%,-2%) rotate(1deg); }
  100% { transform: translate(-2%,3%) rotate(-1deg); }
}

/* --- Floating Orbs --- */
.m2ul-login-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 260px at 6% 90%, rgba(20,184,166,.06), transparent 70%),
    radial-gradient(circle 200px at 94% 8%, rgba(14,165,233,.05), transparent 70%);
  animation: m2ul-orbs 24s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes m2ul-orbs {
  0%   { opacity: .55; transform: translate(0,0); }
  100% { opacity: .9;  transform: translate(10px,-12px); }
}

/* --- Grain Overlay --- */
.m2ul-grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
}

/* =============================================
   Left Panel — Login Form
   ============================================= */
.m2ul-login-panel {
  position: relative;
  z-index: 2;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.m2ul-login-inner { width: 100%; max-width: 440px; }

/* --- Heading --- */
.m2ul-login-inner h1 {
  margin: 0;
  font-family: var(--m2ul-font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #fff !important;
}

.m2ul-subtitle {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--m2ul-text-muted);
  letter-spacing: .005em;
  line-height: 1.55;
}

/* --- Error --- */
.m2ul-error {
  margin-top: 20px;
  border-radius: var(--m2ul-radius-md);
  padding: 13px 16px;
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.22);
  font-size: .9rem;
  color: #fca5a5;
  backdrop-filter: blur(6px);
  animation: m2ul-shake .4s ease;
}

@keyframes m2ul-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* --- Form --- */
.m2ul-login-form { margin-top: 28px; }

/* --- Destination Selector --- */
.m2ul-destination-group { margin: 0 0 22px; border: 0; padding: 0; }

.m2ul-destination-group legend {
  margin-bottom: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--m2ul-text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.m2ul-destination-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.m2ul-destination-pill { display: block; }
.m2ul-destination-pill input { position: absolute; opacity: 0; pointer-events: none; }

.m2ul-destination-pill span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: var(--m2ul-radius-md);
  padding: 13px 16px;
  background: var(--m2ul-bg-card);
  border: 1px solid var(--m2ul-border-subtle);
  color: var(--m2ul-text-secondary);
  cursor: pointer;
  font-weight: 500;
  font-size: .92rem;
  isolation: isolate;
  overflow: hidden;
  transition: all .35s var(--m2ul-ease), box-shadow .35s var(--m2ul-ease);
}

.m2ul-destination-pill span::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--m2ul-accent-teal), var(--m2ul-accent-blue));
  opacity: 0;
  transition: opacity .35s var(--m2ul-ease);
  z-index: -1;
}

.m2ul-destination-pill:hover span {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.m2ul-destination-pill input:checked + span {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 32px rgba(20,184,166,.2), 0 0 0 1px rgba(20,184,166,.3);
  transform: translateY(-1px);
}

.m2ul-destination-pill input:checked + span::before { opacity: 1; }

/* --- Input Fields --- */
.m2ul-field { margin-bottom: 18px; }

.m2ul-field label {
  display: block;
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--m2ul-text-muted);
  letter-spacing: .015em;
}

.m2ul-field input[type="text"],
.m2ul-field input[type="password"] {
  width: 100%;
  border-radius: var(--m2ul-radius-md);
  border: 1px solid var(--m2ul-border-subtle);
  background: rgba(255,255,255,.03);
  color: var(--m2ul-text-primary);
  font-family: var(--m2ul-font-body);
  font-size: .95rem;
  padding: 14px 16px;
  transition: border-color .3s var(--m2ul-ease), box-shadow .3s var(--m2ul-ease), background .3s ease;
  -webkit-appearance: none;
}

.m2ul-field input:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.m2ul-field input:focus {
  outline: none;
  border-color: var(--m2ul-border-active);
  box-shadow: 0 0 0 3px var(--m2ul-glow-teal), 0 0 24px var(--m2ul-glow-teal);
  background: rgba(255,255,255,.05);
}

/* --- Password Toggle --- */
.m2ul-password-wrap { position: relative; }
.m2ul-password-wrap input { padding-right: 80px; }

.m2ul-toggle-password {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--m2ul-text-muted);
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--m2ul-font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .25s ease;
}

.m2ul-toggle-password:hover {
  background: rgba(255,255,255,.1);
  color: var(--m2ul-text-primary);
}

/* --- Remember / Reset --- */
.m2ul-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 10px 0 22px;
}

.m2ul-checkbox-wrap {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--m2ul-text-secondary); font-size: .88rem; cursor: pointer;
}

.m2ul-checkbox-wrap input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--m2ul-accent-teal);
  cursor: pointer;
}

.m2ul-row a {
  color: var(--m2ul-accent-cyan);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color .2s ease;
}

.m2ul-row a:hover { color: #a5f3fc; text-decoration: underline; text-underline-offset: 3px; }

.m2ul-inline-error { margin-bottom: 12px; color: #fca5a5; font-size: .86rem; }

/* --- Submit Button --- */
.m2ul-submit {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: var(--m2ul-radius-md);
  background: linear-gradient(135deg, var(--m2ul-accent-teal), var(--m2ul-accent-blue));
  color: #fff;
  font-family: var(--m2ul-font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 15px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--m2ul-ease), box-shadow .3s var(--m2ul-ease);
}

/* Shimmer sweep */
.m2ul-submit::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
  animation: m2ul-shimmer 3.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes m2ul-shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* Glow halo */
.m2ul-submit::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--m2ul-accent-teal), var(--m2ul-accent-cyan), var(--m2ul-accent-blue));
  opacity: 0; z-index: -1;
  filter: blur(14px);
  transition: opacity .4s ease;
}

.m2ul-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(20,184,166,.25), 0 4px 18px rgba(14,165,233,.15);
}

.m2ul-submit:hover::after { opacity: 1; }
.m2ul-submit:active { transform: translateY(0); box-shadow: 0 4px 16px rgba(20,184,166,.2); }

/* --- Hide Google reCAPTCHA floating badge --- */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }

/* --- Inline reCAPTCHA notice --- */
.m2ul-recaptcha-notice {
  margin-top: 16px;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .01em;
  line-height: 1.5;
  color: var(--m2ul-text-muted);
  opacity: .7;
}

.m2ul-recaptcha-notice a {
  color: var(--m2ul-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}

.m2ul-recaptcha-notice a:hover {
  color: var(--m2ul-text-secondary);
}

.m2ul-recaptcha-notice svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
  opacity: .5;
}

/* =============================================
   Right Panel — Hero
   ============================================= */
.m2ul-hero-panel {
  position: relative; z-index: 2;
  flex: 1 1 50%; min-width: 340px;
  display: flex; flex-direction: column;
  padding: 20px 20px 20px 0;
}

.m2ul-hero-image {
  position: relative;
  flex: 1;
  border-radius: 28px;
  background-image:
    linear-gradient(180deg, rgba(4,6,14,0) 30%, rgba(4,6,14,.88) 100%),
    linear-gradient(120deg, rgba(20,184,166,.08), transparent 50%),
    url("https://images.unsplash.com/photo-1642615835477-d303d7dc9ee9?w=2160&q=80");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  opacity: 0;
  filter: blur(6px);
  transform: translateX(20px) scale(.98);
}

/* Subtle moving glow on hero */
.m2ul-hero-image::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 300px at 30% 70%, rgba(20,184,166,.08), transparent 70%);
  animation: m2ul-hero-glow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes m2ul-hero-glow {
  0%   { opacity: .5; transform: translate(0,0); }
  100% { opacity: 1;  transform: translate(20px,-15px); }
}

/* --- Fact Cards --- */
.m2ul-facts-row {
  display: flex;
  gap: 12px;
  padding: 14px 0 0;
}

.m2ul-facts-row:empty { display: none; }

.m2ul-fact-card {
  flex: 1;
  position: relative;
  border-radius: var(--m2ul-radius-lg);
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 18px 16px;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--m2ul-text-secondary);
  overflow: hidden;
  transition: all .4s var(--m2ul-ease);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(16px) scale(.96);
}

.m2ul-fact-card::before {
  content: '';
  position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,184,166,.35), rgba(14,165,233,.25), transparent);
}

.m2ul-fact-card:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  transform: translateY(-3px) scale(1);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}

.m2ul-fact-text { margin: 0; }

.m2ul-fact-label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--m2ul-accent-teal);
  margin-bottom: 8px;
  opacity: .7;
}

.m2ul-fact-link {
  color: var(--m2ul-accent-cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(34,211,238,.3);
  transition: all .2s ease;
}

.m2ul-fact-link:hover { color: #a5f3fc; border-bottom-color: #a5f3fc; }

/* --- Logged-in State --- */
.m2ul-logged-in-box {
  max-width: 480px; margin: 24px auto;
  border: 1px solid var(--m2ul-border-subtle);
  border-radius: var(--m2ul-radius-lg);
  padding: 32px; text-align: center;
  background: var(--m2ul-bg-card);
  backdrop-filter: blur(12px);
}

.m2ul-button {
  display: inline-block;
  border-radius: var(--m2ul-radius-pill);
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--m2ul-accent-teal), var(--m2ul-accent-blue));
  color: #fff; text-decoration: none; font-weight: 600;
  transition: all .3s ease;
}

.m2ul-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20,184,166,.25);
}

/* =============================================
   Entrance Animations
   ============================================= */

@keyframes m2ul-fade-up {
  from { opacity: 0; filter: blur(8px); transform: translateY(18px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

@keyframes m2ul-slide-right {
  to { opacity: 1; filter: blur(0); transform: translateX(0) scale(1); }
}

@keyframes m2ul-card-in {
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

.m2ul-animate-fade {
  opacity: 0; filter: blur(8px); transform: translateY(18px);
  animation: m2ul-fade-up .65s var(--m2ul-ease) forwards;
}

.m2ul-animate-slide-right { animation: m2ul-slide-right .8s var(--m2ul-ease) forwards; }
.m2ul-animate-card        { animation: m2ul-card-in .7s var(--m2ul-ease) forwards; }

.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }
.delay-5 { animation-delay: .4s; }
.delay-6 { animation-delay: .48s; }
.delay-7 { animation-delay: .56s; }
.delay-8 { animation-delay: .64s; }

/* =============================================
   Floating Particles (JS-generated)
   ============================================= */

.m2ul-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: m2ul-particle-float linear infinite;
}

@keyframes m2ul-particle-float {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px) scale(.2); opacity: 0; }
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .m2ul-login-screen { flex-direction: column; }
  .m2ul-hero-panel   { display: none; }
  .m2ul-login-panel  { flex: 1; min-height: 100dvh; }
}

@media (max-width: 560px) {
  .m2ul-login-panel { padding: 24px 18px; }
  .m2ul-destination-options { grid-template-columns: 1fr; }
  .m2ul-row { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   LIGHT THEME
   A warm, editorial light mode — not flat white.
   Uses warm cream tones, soft teal accents,
   layered shadows, and subtle warmth.
   ============================================= */

.m2ul-login-screen[data-theme="light"] {
  --m2ul-bg-deep: #f5f3f0;
  --m2ul-bg-card: rgba(0, 0, 0, 0.025);
  --m2ul-border-subtle: rgba(0, 0, 0, 0.08);
  --m2ul-border-active: rgba(13, 148, 136, 0.5);
  --m2ul-text-primary: #1a1a1e;
  --m2ul-text-muted: rgba(26, 26, 30, 0.5);
  --m2ul-text-secondary: rgba(26, 26, 30, 0.7);
  --m2ul-accent-teal: #0d9488;
  --m2ul-accent-cyan: #0891b2;
  --m2ul-accent-blue: #0284c7;
  --m2ul-glow-teal: rgba(13, 148, 136, 0.1);
  background: #f5f3f0;
}

/* Mesh — warm tinted, subtle */
.m2ul-login-screen[data-theme="light"]::before {
  background:
    radial-gradient(ellipse 60% 50% at 15% 25%, rgba(13,148,136,.045), transparent 60%),
    radial-gradient(ellipse 55% 45% at 80% 70%, rgba(14,165,233,.035), transparent 55%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(251,191,36,.025), transparent 50%);
}

/* Orbs — warmer, softer */
.m2ul-login-screen[data-theme="light"]::after {
  background:
    radial-gradient(circle 260px at 6% 90%, rgba(13,148,136,.04), transparent 70%),
    radial-gradient(circle 200px at 94% 8%, rgba(251,191,36,.03), transparent 70%);
}

/* Grain — slightly more visible on light */
.m2ul-login-screen[data-theme="light"] .m2ul-grain-overlay {
  opacity: 0.032;
}

/* --- Heading --- */
.m2ul-login-screen[data-theme="light"] .m2ul-login-inner h1 {
  background: linear-gradient(135deg, #1a1a1e 0%, rgba(26,26,30,.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #1a1a1e !important;
}

/* --- Error --- */
.m2ul-login-screen[data-theme="light"] .m2ul-error {
  background: rgba(220,38,38,.06);
  border-color: rgba(220,38,38,.18);
  color: #b91c1c;
}

/* --- Destination pills --- */
.m2ul-login-screen[data-theme="light"] .m2ul-destination-pill span {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.08);
  color: var(--m2ul-text-secondary);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.m2ul-login-screen[data-theme="light"] .m2ul-destination-pill:hover span {
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.m2ul-login-screen[data-theme="light"] .m2ul-destination-pill input:checked + span {
  color: #fff;
  box-shadow: 0 6px 24px rgba(13,148,136,.18), 0 0 0 1px rgba(13,148,136,.25);
}

/* --- Inputs --- */
.m2ul-login-screen[data-theme="light"] .m2ul-field input[type="text"],
.m2ul-login-screen[data-theme="light"] .m2ul-field input[type="password"] {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.1);
  color: var(--m2ul-text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.m2ul-login-screen[data-theme="light"] .m2ul-field input:hover {
  border-color: rgba(0,0,0,.16);
  background: rgba(255,255,255,.85);
}

.m2ul-login-screen[data-theme="light"] .m2ul-field input:focus {
  border-color: var(--m2ul-border-active);
  box-shadow: 0 0 0 3px var(--m2ul-glow-teal), 0 0 16px var(--m2ul-glow-teal);
  background: #fff;
}

/* --- Password toggle --- */
.m2ul-login-screen[data-theme="light"] .m2ul-toggle-password {
  background: rgba(0,0,0,.05);
  color: var(--m2ul-text-muted);
}

.m2ul-login-screen[data-theme="light"] .m2ul-toggle-password:hover {
  background: rgba(0,0,0,.08);
  color: var(--m2ul-text-primary);
}

/* --- Checkbox --- */
.m2ul-login-screen[data-theme="light"] .m2ul-checkbox-wrap input[type="checkbox"] {
  accent-color: var(--m2ul-accent-teal);
}

/* --- Links --- */
.m2ul-login-screen[data-theme="light"] .m2ul-row a {
  color: var(--m2ul-accent-teal);
}

.m2ul-login-screen[data-theme="light"] .m2ul-row a:hover {
  color: #0f766e;
}

/* --- Inline error --- */
.m2ul-login-screen[data-theme="light"] .m2ul-inline-error {
  color: #b91c1c;
}

/* --- Submit button --- */
.m2ul-login-screen[data-theme="light"] .m2ul-submit {
  background: linear-gradient(135deg, #0d9488, #0284c7);
  box-shadow: 0 2px 8px rgba(13,148,136,.12);
}

.m2ul-login-screen[data-theme="light"] .m2ul-submit:hover {
  box-shadow: 0 10px 36px rgba(13,148,136,.2), 0 4px 14px rgba(2,132,199,.1);
}

/* --- Hero image --- */
.m2ul-login-screen[data-theme="light"] .m2ul-hero-panel {
  padding: 20px 20px 20px 0;
}

.m2ul-login-screen[data-theme="light"] .m2ul-hero-image {
  background-image:
    linear-gradient(180deg, rgba(245,243,240,0) 20%, rgba(245,243,240,.75) 100%),
    linear-gradient(120deg, rgba(13,148,136,.06), transparent 50%),
    url("https://images.unsplash.com/photo-1642615835477-d303d7dc9ee9?w=2160&q=80");
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}

.m2ul-login-screen[data-theme="light"] .m2ul-hero-image::before {
  background: radial-gradient(circle 300px at 30% 70%, rgba(13,148,136,.05), transparent 70%);
}

/* --- Fact cards --- */
.m2ul-login-screen[data-theme="light"] .m2ul-fact-card {
  background: rgba(255,255,255,.65);
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  color: var(--m2ul-text-secondary);
}

.m2ul-login-screen[data-theme="light"] .m2ul-fact-card::before {
  background: linear-gradient(90deg, transparent, rgba(13,148,136,.2), rgba(2,132,199,.15), transparent);
}

.m2ul-login-screen[data-theme="light"] .m2ul-fact-card:hover {
  border-color: rgba(0,0,0,.1);
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.m2ul-login-screen[data-theme="light"] .m2ul-fact-label {
  color: var(--m2ul-accent-teal);
  opacity: .85;
}

.m2ul-login-screen[data-theme="light"] .m2ul-fact-link {
  color: var(--m2ul-accent-teal);
  border-bottom-color: rgba(13,148,136,.25);
}

.m2ul-login-screen[data-theme="light"] .m2ul-fact-link:hover {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

/* --- Logged in box --- */
.m2ul-login-screen[data-theme="light"] .m2ul-logged-in-box {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

/* --- Particles --- */
.m2ul-login-screen[data-theme="light"] .m2ul-particle {
  opacity: .6;
}

/* =============================================
   WP Admin — Facts Repeater
   ============================================= */

.m2ul-facts-admin-list { margin-bottom: 16px; }

.m2ul-fact-admin-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start;
  padding: 14px; margin-bottom: 8px;
  background: #f9f9f9; border: 1px solid #ddd; border-radius: 6px;
  position: relative;
}

.m2ul-fact-admin-row .m2ul-fact-field { flex: 1 1 100%; }
.m2ul-fact-admin-row .m2ul-fact-field-half { flex: 1 1 calc(50% - 4px); }

.m2ul-fact-admin-row input,
.m2ul-fact-admin-row textarea { width: 100%; }

.m2ul-fact-admin-row textarea { min-height: 50px; resize: vertical; }

.m2ul-fact-remove-btn {
  color: #b91c1c; cursor: pointer;
  background: none; border: 1px solid #fca5a5;
  border-radius: 4px; padding: 4px 10px;
  font-size: .82rem; margin-top: 4px;
}

.m2ul-fact-remove-btn:hover { background: #fef2f2; }
#m2ul-add-fact-btn { margin-top: 4px; }

/* =============================================================
   Login redesign — 3-card destination picker + Game teaser
   ============================================================= */

.m2ul-destination-options { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }

.m2ul-destination-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 12px;
}
.m2ul-destination-heading {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7c7a73;
}
.m2ul-destination-hint {
  font-size: 11px; font-weight: 500; color: #a29e95; text-transform: none;
}

.m2ul-destination-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 104px;
  padding: 14px 12px 12px;
  background: #ffffff;
  border: 1px solid rgba(15,17,21,0.10);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 180ms ease, border-color 140ms ease, background 140ms ease;
}
.m2ul-destination-card input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0;
}
.m2ul-destination-card:hover {
  border-color: rgba(15,17,21,0.18);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(15,17,21,0.22), 0 1px 2px rgba(15,17,21,0.06);
}
.m2ul-destination-card.is-active,
.m2ul-destination-card:has(input:checked) {
  background: linear-gradient(92deg, #0f7a75 0%, #117e87 38%, #1e7fb8 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px -8px rgba(15,17,21,0.22), 0 1px 2px rgba(15,17,21,0.06);
}

.m2ul-destination-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(15,17,21,0.04);
  color: #3d4049;
}
.m2ul-destination-glyph svg { width: 16px; height: 16px; display: block; }

.m2ul-destination-card.is-active .m2ul-destination-glyph,
.m2ul-destination-card:has(input:checked) .m2ul-destination-glyph {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

.m2ul-destination-name {
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.1;
  color: #0f1115;
}
.m2ul-destination-desc {
  margin-top: -4px;
  font-size: 11.5px; line-height: 1.3; color: #7c7a73;
}
.m2ul-destination-card.is-active .m2ul-destination-name,
.m2ul-destination-card:has(input:checked) .m2ul-destination-name { color: #ffffff; }
.m2ul-destination-card.is-active .m2ul-destination-desc,
.m2ul-destination-card:has(input:checked) .m2ul-destination-desc { color: rgba(255,255,255,0.78); }

.m2ul-destination-new {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 6px; border-radius: 999px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: #c76b3b; color: #ffffff;
}
.m2ul-destination-card.is-active .m2ul-destination-new,
.m2ul-destination-card:has(input:checked) .m2ul-destination-new {
  background: rgba(255,255,255,0.22);
}

/* Game teaser card */
.m2ul-game-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 4 / 5;
  margin: 0 auto 16px;
  border-radius: 22px;
  overflow: hidden;
  background: #7ea46b;
  box-shadow: 0 24px 60px -20px rgba(15,17,21,0.35), 0 4px 12px -4px rgba(15,17,21,0.12);
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
  outline: none;
}
.m2ul-game-card:hover { transform: translateY(-2px); box-shadow: 0 28px 70px -20px rgba(15,17,21,0.42), 0 6px 16px -4px rgba(15,17,21,0.16); }
.m2ul-game-card:focus-visible { box-shadow: 0 0 0 3px rgba(15,122,117,0.45), 0 24px 60px -20px rgba(15,17,21,0.35); }

.m2ul-game-art {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.m2ul-game-card:hover .m2ul-game-art { transform: scale(1.06); }
.m2ul-game-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15,17,21,0) 55%, rgba(15,17,21,0.55) 85%, rgba(15,17,21,0.82) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 25%);
}

.m2ul-game-overlay-top {
  position: absolute; top: 18px; left: 18px; right: 18px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.m2ul-game-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #0f1115;
}
.m2ul-game-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c76b3b;
  animation: m2ul-pulse 1.8s ease-in-out infinite;
}
@keyframes m2ul-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,107,59,0.45); }
  50% { box-shadow: 0 0 0 5px rgba(199,107,59,0); }
}
.m2ul-game-secret {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.m2ul-game-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 22px 26px 24px;
  color: #ffffff;
}
.m2ul-game-kicker {
  display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin: 0 0 8px;
}
.m2ul-game-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  margin: 0 0 6px;
}
.m2ul-game-tagline {
  max-width: 380px;
  font-size: 13px; line-height: 1.4;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin: 0 0 16px;
}
.m2ul-game-cta-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.m2ul-game-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f1115;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: transform 120ms ease, box-shadow 200ms ease;
}
.m2ul-game-cta:hover { transform: translateX(2px); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.m2ul-game-cta svg { transition: transform 120ms ease; }
.m2ul-game-cta:hover svg { transform: translateX(2px); }
.m2ul-game-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 500;
  color: rgba(255,255,255,0.72);
}
.m2ul-game-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  display: inline-block;
}

/* Restyled "Did you know?" card to match new design */
.m2ul-fact-card { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; }
.m2ul-fact-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(15,122,117,0.08), rgba(30,127,184,0.08));
  color: #0f7a75;
}
.m2ul-fact-icon svg { width: 18px; height: 18px; }
.m2ul-fact-body { flex: 1; }
.m2ul-fact-body .m2ul-fact-label {
  display: block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #0f7a75;
  margin-bottom: 4px;
}
.m2ul-fact-body .m2ul-fact-text {
  font-size: 13px; line-height: 1.35; color: #3d4049;
  margin: 0;
}

/* Hide the old generic hero image — replaced by game card */
.m2ul-hero-image { display: none; }

/* Hero panel layout tweak for the new cards */
.m2ul-hero-panel {
  display: flex; flex-direction: column;
  justify-content: center; align-items: stretch;
  gap: 16px;
  padding: 24px;
}
.m2ul-facts-row { margin-top: 4px; }

/* Light theme: map destination/game text colors appropriately */
.m2ul-login-screen[data-theme="light"] .m2ul-destination-name { color: #0f1115; }
.m2ul-login-screen[data-theme="light"] .m2ul-destination-desc { color: #7c7a73; }

/* Lock viewport — login page should never scroll */
html, body { overflow: hidden !important; overscroll-behavior: none; }
.m2ul-login-screen {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.m2ul-login-panel { max-height: 100dvh; overflow-y: auto; }
.m2ul-hero-panel { max-height: 100dvh; overflow: hidden; }
.m2ul-login-panel::-webkit-scrollbar { width: 0; height: 0; }
.m2ul-login-panel { scrollbar-width: none; }
