/* ==========================================================
   Pyari LMS — Global styles
   ========================================================== */

:root {
  --ink: #14213d;
  --ink-soft: #55607a;
  --paper: #faf5f9;
  --blue: #2f4bd8;
  --blue-deep: #1f33a6;
  --teal: #0f9d8a;
  --teal-deep: #0b7a6b;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(60rem 40rem at 12% 8%, rgba(47, 75, 216, 0.14), transparent 60%),
    radial-gradient(50rem 36rem at 90% 95%, rgba(15, 157, 138, 0.14), transparent 60%),
    linear-gradient(rgba(20, 33, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 61, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.hero {
  width: 100%;
  max-width: 44rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  animation: rise 0.7s ease-out both;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13rem;
  height: 3.75rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  box-shadow: 0 8px 20px -6px var(--btn-shadow), 0 2px 4px rgba(20, 33, 61, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 30px -8px var(--btn-shadow), 0 4px 8px rgba(20, 33, 61, 0.14);
}

.btn:active { transform: scale(0.98); }

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.btn--admin {
  --btn-shadow: rgba(47, 75, 216, 0.55);
  background-color: var(--blue);
}
.btn--admin:hover { background-color: var(--blue-deep); }

.btn--employee {
  --btn-shadow: rgba(15, 157, 138, 0.55);
  background-color: var(--teal);
}
.btn--employee:hover { background-color: var(--teal-deep); }

/* Secondary button used on placeholder pages */
.btn--ghost {
  --btn-shadow: rgba(20, 33, 61, 0.25);
  background-color: var(--ink);
}

/* ---------- Placeholder pages ---------- */
.hero__text {
  margin: 0;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero--compact { gap: 1.5rem; }
.hero--compact .hero__title { font-size: clamp(2rem, 5vw, 3.25rem); }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero { gap: 2.25rem; }
  .actions { gap: 1rem; }
  .btn { width: 10.5rem; height: 3.5rem; font-size: 1.05rem; }
}

@media (max-width: 479px) {
  .actions { flex-direction: column; width: 100%; max-width: 16rem; }
  .btn { width: 100%; }
}

/* ==========================================
   PYARI LMS - PREMIUM COMING SOON POPUP
========================================== */

.coming-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 25, 0.82);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease,
              backdrop-filter .5s ease;
}

.coming-overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.coming-popup {
  position: relative;
  width: 100%;
  max-width: 650px;
  min-height: 510px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.25);

  background:
    radial-gradient(circle at 15% 15%, rgba(255,0,153,.35), transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(0,255,209,.25), transparent 35%),
    linear-gradient(135deg, #10002e, #17105a 50%, #090d32);

  box-shadow:
    0 0 35px rgba(120, 70, 255, .35),
    0 0 100px rgba(255, 0, 180, .2),
    0 35px 100px rgba(0,0,0,.55);

  transform: scale(.65) translateY(100px) rotateX(15deg);
  opacity: 0;
  transition: transform .85s cubic-bezier(.16,1,.3,1),
              opacity .6s ease;
}

.coming-overlay.active .coming-popup {
  transform: scale(1) translateY(0) rotateX(0);
  opacity: 1;
}

/* Animated rainbow border */

.coming-popup::before {
  content: "";
  position: absolute;
  inset: -150%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    #ff00cc,
    #7b2cff,
    #00eaff,
    #00ff9d,
    #ffcc00,
    #ff00cc
  );
  animation: rainbowSpin 7s linear infinite;
}

.coming-popup::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,0,153,.22), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(0,255,209,.2), transparent 40%),
    linear-gradient(135deg, #10002e, #17105a 50%, #090d32);
}

@keyframes rainbowSpin {
  to { transform: rotate(360deg); }
}

/* Close button */

.coming-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  background: rgba(255,255,255,.12);
  font-size: 28px;
  cursor: pointer;
  transition: .3s;
}

.coming-close:hover {
  background: #ff287a;
  transform: rotate(90deg) scale(1.15);
}

/* Main content */

.coming-content {
  position: relative;
  z-index: 3;
  min-height: 510px;
  padding: 65px 40px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.coming-badge {
  padding: 9px 17px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  color: #f9b8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  50% {
    box-shadow: 0 0 25px rgba(255,0,200,.6);
    border-color: #ff64de;
  }
}

/* Brand name */

.coming-logo {
  margin-top: 25px;
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 950;
  letter-spacing: -3px;
  line-height: 1;
  color: white;
  text-shadow: 0 0 25px rgba(255,255,255,.3);
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-highlight {
  background: linear-gradient(90deg, #ff4fd8, #a88aff, #42e9ff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: textShine 3s linear infinite;
}

@keyframes textShine {
  to { background-position: 200% center; }
}

@keyframes logoFloat {
  50% { transform: translateY(-8px); }
}

/* Main heading */

.coming-heading {
  margin: 25px 0 12px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -1.5px;
  color: #fff;
  text-shadow: 0 5px 25px rgba(0,0,0,.3);
}

.coming-heading span {
  display: block;
  background: linear-gradient(90deg, #ff4b9f, #ffcc66, #55e9ff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: textShine 3s linear infinite;
}

/* Divider */

.coming-line {
  width: 100px;
  height: 4px;
  margin: 15px 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff31bd, #53eaff);
  box-shadow: 0 0 20px #ff31bd;
  animation: lineExpand 2s ease-in-out infinite alternate;
}

@keyframes lineExpand {
  to { width: 180px; }
}

/* Description */

.coming-description {
  max-width: 440px;
  margin: 5px auto 20px;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.8;
}

/* Launch text */

.coming-launch {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #70ffe0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.launch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70ffe0;
  box-shadow: 0 0 12px #70ffe0;
  animation: dotBlink 1s infinite alternate;
}

@keyframes dotBlink {
  to { opacity: .25; transform: scale(.6); }
}

/* CTA */

.coming-cta {
  margin-top: 25px;
  padding: 15px 35px;
  border: 0;
  border-radius: 50px;
  background: linear-gradient(100deg, #ff2fa4, #873cff, #287cff);
  background-size: 200% auto;
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(180,40,255,.4);
  transition: .3s;
  animation: buttonGlow 2s infinite alternate;
}

.coming-cta:hover {
  transform: translateY(-5px) scale(1.06);
  background-position: right center;
  box-shadow: 0 12px 40px rgba(255,40,180,.65);
}

.coming-cta span {
  margin-left: 8px;
}

@keyframes buttonGlow {
  to {
    box-shadow: 0 0 35px rgba(255,40,180,.75);
  }
}

.coming-footer {
  margin: 25px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 800;
}

/* Rotating decorative rings */

.coming-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 450px;
  height: 450px;
  transform: translate(-50%, -50%);
  animation: orbitRotate 18s linear infinite;
}

.orbit-two {
  width: 570px;
  height: 570px;
  transform: translate(-50%, -50%);
  border-style: dashed;
  border-color: rgba(255,0,200,.2);
  animation: orbitRotate 28s linear infinite reverse;
}

@keyframes orbitRotate {
  to { rotate: 360deg; }
}

/* Floating particles */

.coming-particles span {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 15px #ff45db;
  animation: particleFloat 5s ease-in-out infinite;
}

.coming-particles span:nth-child(1) { top: 15%; left: 12%; }
.coming-particles span:nth-child(2) { top: 25%; right: 12%; animation-delay: 1s; }
.coming-particles span:nth-child(3) { bottom: 20%; left: 18%; animation-delay: 2s; }
.coming-particles span:nth-child(4) { bottom: 15%; right: 18%; animation-delay: 1.5s; }
.coming-particles span:nth-child(5) { top: 50%; left: 5%; animation-delay: 2.5s; }
.coming-particles span:nth-child(6) { top: 55%; right: 5%; animation-delay: 3s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(.7); opacity: .4; }
  50% { transform: translateY(-35px) scale(1.5); opacity: 1; }
}

/* Responsive */

@media (max-width: 600px) {
  .coming-popup {
    min-height: 470px;
    border-radius: 23px;
  }

  .coming-content {
    min-height: 470px;
    padding: 60px 20px 25px;
  }

  .coming-heading {
    font-size: 34px;
  }

  .coming-description {
    font-size: 13px;
  }

  .coming-badge {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 400px; height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  .coming-popup,
  .coming-popup *,
  .coming-popup::before {
    animation: none !important;
    transition: none !important;
  }
}

