@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800;900&display=swap');

:root{
  --red:#d83a33;
  --red2:#b41e1b;
  --cream:#f6f3ee;
  --white: #ffffff;
  --ink:#0f0f10;

  --glass: rgba(255,255,255,.12);
  --glass2: rgba(255,255,255,.08);

  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --shadow2: 0 14px 42px rgba(0,0,0,.35);

  --radius: 18px;
  --radius2: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body#login{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--white);
  overflow-x:hidden;
  background: #000;
}

/* ================= BACKGROUND (image) ================= */
.bg-photo{
  position: fixed;
  inset: 0;
  background: url("../img/car-bg.jpg") center/cover no-repeat;
  z-index: -4;
  transform: scale(1.03);
}

.bg-overlay{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 520px at 20% 35%, rgba(216,58,51,.30), transparent 65%),
    radial-gradient(820px 520px at 85% 25%, rgba(0,0,0,.55), transparent 60%),
    /* linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.30) 100%); */
}

/* Animated “map” lines + moving marker dots (CSS only) */
.bg-mapfx{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events:none;
  opacity: .95;
}

/* thin flowing lines */
.bg-mapfx::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(2px 2px at 18% 30%, rgba(255,255,255,.25), transparent 55%),
    radial-gradient(2px 2px at 62% 22%, rgba(255,255,255,.20), transparent 55%),
    radial-gradient(2px 2px at 88% 35%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(transparent 0 0);
  mask-image:
    radial-gradient(1200px 520px at 40% 30%, #000 40%, transparent 78%),
    radial-gradient(1200px 520px at 72% 35%, #000 35%, transparent 75%);
  opacity:.7;
}

/* “route” glow line + moving dot */
.bg-mapfx::after{
  content:"";
  position:absolute;
  left:-10%;
  top: 22%;
  width: 140%;
  height: 44%;
  background:
    radial-gradient(10px 10px at 0% 50%, rgba(216,58,51,.0), transparent 60%),
    linear-gradient(90deg, rgba(216,58,51,0) 0%, rgba(216,58,51,.65) 35%, rgba(216,58,51,.65) 65%, rgba(216,58,51,0) 100%);
  filter: blur(18px);
  opacity:.35;
  transform: rotate(-2deg);
  animation: routeGlow 6s ease-in-out infinite;
}

@keyframes routeGlow{
  0%,100%{ transform: translateY(0) rotate(-2deg); opacity:.30; }
  50%{ transform: translateY(12px) rotate(-2deg); opacity:.44; }
}

/* ================= PAGE LAYOUT ================= */
.page{
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 170px; /* extra bottom space so fixed footer blocks won't overlap */
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.hero-row{
  display:grid;
  grid-template-columns: 1fr !important; 
  gap: 26px;
  align-items:center;
}

.hero-copy{
  padding-top: 10px;
}

/* ================= TOP-LEFT LOGO (FIXED) ================= */
.top-glass-bar{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 110px;              /* adjust height here */
  z-index: 20;

  /* glass background */
  background: rgba(255,255,255,.10);   /* less transparency like login */
  border-bottom: 1px solid rgba(255,255,255,.18);

  /* blur glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* soft fade at bottom */
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);

  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.top-logo{
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 12px 16px;
}

.top-logo::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 5px;

  background: rgba(255, 255, 255, 0.5);
  /* border: 1px solid rgba(255,255,255,.18); */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  z-index: -1;
}

.top-logo img{
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.55));
}

/* ================= AUTH CARD ================= */
.auth-col{
  display:flex;
  flex-direction:column;
  gap: 14px;
  align-items: center !important;
  /* margin-top: 70px;
  margin-left: 800px; */
  position: relative;
  left: 450px;
  top: 70px;
}

.auth-card{
  width: 380px;
  height: 420px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow:hidden;
  margin-top: 0;
}

/* spacing inside forms */
.form{ padding: 10px 18px 16px; margin:0; }
.field{ margin-top: 12px; }

.label{
  display:block;
  font-size: 12.5px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin-bottom: 8px;
}

.input{
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.85);
  transition: .18s ease;
}

.input:focus-within{
  border-color: rgba(216,58,51,.60);
  box-shadow: 0 0 0 4px rgba(216,58,51,.18);
}

.icon{ width:18px; height:18px; color:#1a1a1a; opacity:.8; }

input.form-control{
  border:none !important;
  outline:none !important;
  background:transparent !important;
  width:100%;
  font-size: 14px;
  color: #111;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 12px;
}

.check{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.88);
}
.check input{ width:16px; height:16px; accent-color: var(--red); }

.link{
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.88);
  text-decoration:none;
}
.link:hover{ text-decoration:underline; }

.btn-login{
  width: 100%;
  border:none;
  cursor:pointer;
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 14px;
  color:#fff;
  background: linear-gradient(135deg, var(--red) 0%, #e34842 60%, var(--red2) 100%);
  box-shadow: 0 18px 42px rgba(216,58,51,.35);
}

.mini-actions{
  margin-top: 12px;
  text-align:center;
}

.mobile-link{
  font-size: 12.5px;
  font-weight: 900;
  color: rgba(140,200,255,.95);
  text-decoration: underline;
}

.btn-ghost{
  display:inline-flex;
  /* align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18); */
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 900;
  font-size: 12.5px;
}

.auth-footer{
  margin-top: 14px;
  text-align:center;
  font-size: 11.5px;
  color: rgba(255,255,255,.60);
}

/* Forgot section */
.forgot-head{
  padding: 8px 18px 0;
}
.forgot-title{
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin-top: 10px;
}

/* security code row spacing */
.seccode-row{
  display:flex;
  gap: 12px;
  align-items:center;
}

.seccode-btn{
  border:none;
  cursor:pointer;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  gap: 10px;
}

.security-code{ height: 28px; display:block; }
.seccode-text{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 12px;
}

.seccode-input{ flex:1; }

/* ================= CARD FLIP (LOGIN ↔ FORGOT) ================= */
.card-flip{ perspective: 1200px; }
.flip-wrap{ position: relative; padding-bottom: 0; }
.flip-inner{
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  min-height: 420px; /* keeps card height steady */
}

.card-flip.is-flipped .flip-inner{
  transform: rotateY(180deg);
}

.flip-face{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
}

.flip-front{ transform: rotateY(0deg); }
.flip-back{ transform: rotateY(180deg); }

/* ================= FIXED: BOTTOM-LEFT STORE BADGES ================= */
.bottom-left-badges{
  position: fixed;
  left: 28px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* both rows same spacing */
.badge-row,
.qr-row{
  display: flex;
  gap: 16px;
  align-items: center;
}

.bottom-left-badges .qr-thumb{
  width: 130px;
  height: 130px;
}

/* ================= FIXED: BOTTOM-RIGHT QR THUMBS ================= */
/* .bottom-right-qrs{
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 50;
  display:flex;
  gap: 14px;
  align-items:center;
} */

.qr-thumb{
  width: 175px;
  height: 120px;
  border: 0;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}

.qr-thumb:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0,0,0,.26);
}

.qr-thumb img{
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.badge-thumb img{
  width: 100%;
  height: 100%;
  padding-top: 63px;
}

.badge-row .qr-thumb.badge-thumb{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.badge-row .qr-thumb.badge-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-row .qr-thumb.badge-thumb:hover{
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}

/* ================= FIXED: BOTTOM-CENTER CONTACT ================= */
.bottom-center-contact{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  text-align:center;
  color: rgba(0, 0, 0, 0.92);
  text-shadow: 0 10px 26px rgba(0,0,0,.45);
  padding: 0 12px;
}

.bottom-center-contact .contact-title{
  font-weight: 900;
  font-size: 25px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

/* wrapper already yours */
.bottom-center-contact .c-ico{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  margin-right: 8px;
}

/* make svg visible */
.bottom-center-contact .c-ico svg{
  width: 18px;
  height: 18px;
  stroke: #ffffff;          /* ✅ icon color */
  opacity: 0.95;
}

/* ensure link content is aligned */
.contact-row-fixed{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.c-link-fixed{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;           /* ✅ text color */
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.c-link-fixed:hover{
  text-decoration: underline;
}

.c-sep-fixed{
  color: rgba(255, 255, 255, 0.45);
  font-weight: 900;
}

/* ================= QR ZOOM OVERLAY ================= */
.qr-overlay{
  position: fixed;
  inset: 0;
  z-index: 100;
  display:none;
}

.qr-overlay.is-open{
  display:block;
}

.qr-overlay-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.qr-overlay-card{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(520px, 92vw);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  padding: 18px;
  animation: qrPop .18s ease-out forwards;
}

@keyframes qrPop{
  from{ transform: translate(-50%, -50%) scale(.92); opacity:.2; }
  to{ transform: translate(-50%, -50%) scale(1); opacity:1; }
}

.qr-overlay-card img{
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display:block;
}

.qr-close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.95);
  cursor:pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px){
  .hero-row{ grid-template-columns: 1fr; }
  .auth-col{ align-items: center; }
  .auth-card{ width: min(460px, 100%); }

  .bottom-center-contact{ bottom: 120px; } /* keep above badges on small screens */
}

@media (max-width: 900px){
  .bottom-left-badges{ left: 12px; bottom: 12px; }
  .bottom-right-qrs{ right: 12px; bottom: 12px; }
  .top-logo{ top: 12px; left: 12px; }
  .top-logo img{ height: 54px; }
  .store-badge-fixed{ width: 145px; height: 68px; }
  .qr-thumb{ width: 96px; height: 96px; }
}

@media (max-width: 560px){
  .page{ padding-bottom: 210px; }
  .bottom-center-contact{ bottom: 120px; }
  .store-badge-fixed{ width: 135px; height: 64px; }
}

/* ✅ Smooth background movement */
.bg-photo{
  animation: bgKenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bgKenBurns{
  0%   { transform: scale(1.05) translate3d(0,0,0); }
  50%  { transform: scale(1.10) translate3d(-1.2%, -1%, 0); }
  100% { transform: scale(1.06) translate3d(1.2%, 1%, 0); }
}

/* ✅ Floating bokeh lights layer */
.bg-mapfx{
  overflow:hidden;
}

/* floating bokeh particles */
.bg-mapfx .bokeh,
.bg-mapfx::before{
  pointer-events:none;
}

.bg-mapfx::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(14px 14px at 12% 32%, rgba(255,80,70,.25), transparent 60%),
    radial-gradient(18px 18px at 22% 58%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(22px 22px at 45% 40%, rgba(255,80,70,.18), transparent 60%),
    radial-gradient(12px 12px at 62% 28%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(20px 20px at 72% 52%, rgba(255,80,70,.16), transparent 60%),
    radial-gradient(26px 26px at 86% 36%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(16px 16px at 92% 62%, rgba(255,80,70,.14), transparent 60%);
  filter: blur(1px);
  opacity: .85;
  animation: bokehFloat 10s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}

@keyframes bokehFloat{
  0%   { transform: translate3d(-1%, -1%, 0) scale(1); opacity:.70; }
  50%  { transform: translate3d(1.2%, 0.8%, 0) scale(1.03); opacity:.95; }
  100% { transform: translate3d(-0.6%, 1.2%, 0) scale(1.01); opacity:.80; }
}

/* ✅ Route dotted line moving */
.bg-mapfx::after{
  content:"";
  position:absolute;
  left:-20%;
  top: 40%;
  width: 140%;
  height: 220px;
  background:
    radial-gradient(6px 6px at 10% 60%, rgba(216,58,51,.95), transparent 60%),
    radial-gradient(6px 6px at 30% 40%, rgba(216,58,51,.85), transparent 60%),
    radial-gradient(6px 6px at 50% 55%, rgba(216,58,51,.80), transparent 60%),
    radial-gradient(6px 6px at 70% 42%, rgba(216,58,51,.85), transparent 60%),
    radial-gradient(6px 6px at 90% 58%, rgba(216,58,51,.95), transparent 60%);
  filter: blur(0.2px);
  opacity: .45;
  animation: routeMove 6s linear infinite;
}

@keyframes routeMove{
  from { transform: translateX(-2%) translateY(0); }
  to   { transform: translateX(2%) translateY(-6px); }
}

/* ✅ A glowing moving marker dot (pulse) */
.bg-mapfx{
  background-image:
    radial-gradient(14px 14px at 18% 46%, rgba(216,58,51,.95), transparent 60%),
    radial-gradient(18px 18px at 18% 46%, rgba(216,58,51,.35), transparent 70%);
  background-repeat:no-repeat;
  animation: markerTravel 7s ease-in-out infinite;
}

@keyframes markerTravel{
  0%   { background-position: 10% 50%, 10% 50%; }
  50%  { background-position: 55% 44%, 55% 44%; }
  100% { background-position: 92% 52%, 92% 52%; }
}
