/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* BODY - DARK LIVELY BACKGROUND */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background: linear-gradient(-45deg, #0f172a, #1e293b, #020617, #111827);
  background-size: 400% 400%;
  animation: darkGradient 12s ease infinite;
}

/* GRADIENT ANIMATION */
@keyframes darkGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.bg-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}

/* Purple glow */
.bg-blobs span:nth-child(1) {
  width: 350px;
  height: 350px;
  background: rgba(99, 102, 241, 0.6);
  top: 5%;
  left: 10%;
}

/* Green glow */
.bg-blobs span:nth-child(2) {
  width: 300px;
  height: 300px;
  background: rgba(34, 197, 94, 0.5);
  bottom: 10%;
  right: 10%;
  animation-duration: 25s;
}

/* Blue glow */
.bg-blobs span:nth-child(3) {
  width: 250px;
  height: 250px;
  background: rgba(14, 165, 233, 0.5);
  top: 60%;
  left: 60%;
  animation-duration: 18s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-50px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* CARD */
.wrapper {
  width: 940px;
  max-width: 95%;
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  position: relative;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(30px);

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.35),
    0 10px 40px rgba(0, 0, 0, 0.2);

  animation: fadeUp 0.8s ease;
  transition: 0.4s;
}

/* subtle hover depth */
.wrapper:hover {
  transform: scale(1.01);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* BORDER GLOW */
.wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;

  background: linear-gradient(120deg, #6366f1, #22c55e, #0ea5e9);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;

  opacity: 0.6;
}
/* LEFT PANEL */
.left-panel {
  width: 50%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* GRADIENT MOTION */
.left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(99, 102, 241, 0.1),
    rgba(34, 197, 94, 0.1),
    rgba(14, 165, 233, 0.1)
  );
  background-size: 200% 200%;
  animation: move 10s infinite;
}
@keyframes move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* SHINE */
.shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 6s infinite;
}
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

.left-panel > * {
  position: relative;
  z-index: 2;
}

/* CENTERED BRAND */
.brand-row {
  display: flex;
  flex-direction: column; /* stack */
  align-items: center; /* center horizontally */
  justify-content: center;
  text-align: center;

  margin-bottom: 25px;
}

/* BIGGER LOGO */
.brand-row img {
  width: 250px;
  height: 250px;
  object-fit: contain;

  filter: drop-shadow(0 15px 30px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));

  transition: 0.4s;
}

.brand-row img:hover {
  transform: scale(1.08);
}

/* TAGLINE */
.tagline {
  font-size: 14px;
  color: #475569;
  margin-bottom: 25px;
}

/* FEATURES */
.features {
  font-size: 13px;
  color: #334155;
  line-height: 2;
}

/* RIGHT PANEL */
.right-panel {
  width: 50%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: rgba(255, 255, 255, 0.85);

  /* 👇 subtle separation */
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.right-panel::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15),
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  z-index: 0;
}

.right-panel > * {
  position: relative;
  z-index: 2;
}

/* TEXT */
.login-title {
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
}

.login-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 25px;
}

/* INPUT */
.form-group {
  margin-bottom: 18px;
}
label {
  font-size: 11px;
  color: #64748b;
}

input {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 5px;
  transition: 0.25s;
}

input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  transform: scale(1.02);
}

/* BUTTON */
.btn-login {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;

  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;

  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.5),
    0 0 20px rgba(99, 102, 241, 0.4);
}

/* FOOTER */
.footer {
  margin-top: 15px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }
  .left-panel,
  .right-panel {
    width: 100%;
    padding: 30px;
  }
}

/* ===== WELCOME ANIMATED TEXT ===== */

.login-title {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* BASE STYLES */
.welcome-text,
.back-text {
  position: relative;
  display: inline-block;
}

/* 🌈 ANIMATED COLOR TEXT (WELCOME) */
.welcome-text {
  background: linear-gradient(
    90deg,
    #6366f1,
    #22c55e,
    #0ea5e9,
    #f472b6,
    #6366f1
  );
  background-size: 300% 300%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientFlow 4s ease infinite;

  text-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* SIMPLE BUT EMPHASIZED "BACK" */
.back-text {
  color: #0f172a;
}

/* ANIMATION */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ✨ GLOW PULSE UNDER WELCOME */
.welcome-text::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #22c55e, #0ea5e9);
  border-radius: 10px;

  filter: blur(6px);
  opacity: 0.6;

  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% {
    opacity: 0.3;
    transform: scaleX(0.9);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.3;
    transform: scaleX(0.9);
  }
}

/* BASE TOAST STYLE */
.swal2-popup {
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
  padding: 10px 14px !important;
}

/* 🟢 SUCCESS */
.swal-success-bg {
  background: #f0fbf5 !important;
  border-left: 5px solid #28c76f !important;
}

/* 🔴 ERROR */
.swal-error-bg {
  background: #fdeaea !important;
  border-left: 5px solid #ea5455 !important;
}

/* 🟡 WARNING */
.swal-warning-bg {
  background: #fff7e6 !important;
  border-left: 5px solid #ff9f43 !important;
}

/* 🔵 INFO */
.swal-info-bg {
  background: #eaf6ff !important;
  border-left: 5px solid #00cfe8 !important;
}

/* 🟣 LOADING */
.swal-loading-bg {
  background: #f3f0ff !important;
  border-left: 5px solid #7367f0 !important;
}

/* TEXT COLORS */
.swal-dark {
  color: #2c2c2c !important;
}

/* ⏳ PROGRESS BAR */
.swal2-timer-progress-bar {
  height: 3px !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

/* TYPE-COLORED PROGRESS BAR */
.swal-success-bg .swal2-timer-progress-bar {
  background: #28c76f !important;
}

.swal-error-bg .swal2-timer-progress-bar {
  background: #ea5455 !important;
}

.swal-warning-bg .swal2-timer-progress-bar {
  background: #ff9f43 !important;
}

.swal-info-bg .swal2-timer-progress-bar {
  background: #00cfe8 !important;
}

/* ================= LEFT LOGO ================= */

/* ================= POS HEADER IMAGE ================= */
.pos-login-header {
  text-align: center;
  margin-bottom: 15px;
}

.pos-banner {
  width: 30%;
  max-width: 260px;
  border-radius: 14px;
  /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); */
  animation: float 3s ease-in-out infinite;
}

/* floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ================= LOGIN TITLE ENHANCEMENT ================= */
.login-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-top: 10px;
}

.welcome-text {
  color: #111827;
}

.back-text {
  color: #10b981;
}
