@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

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

body {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh !important;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, #409849 0%, #398c43 35%, #7e803d 72%, #97843f 100%) !important;
  overflow-x: hidden !important;
  padding: 20px !important;
}

/* Login Card Container */
.login-card {
  position: relative !important;
  width: 780px !important;
  height: 460px !important;
  max-width: 96vw !important;
  background-color: #ffffff !important;
  border: 4.5px solid #ffffff !important;
  border-radius: 28px !important;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.8), 0 0 65px rgba(255, 255, 255, 0.4) !important;
  overflow: hidden !important;
  display: flex !important;
}

/* Green Diagonal Split */
.green-shape {
  position: absolute !important;
  inset: 0 !important;
  background-color: #1fa44a !important;
  clip-path: polygon(0 0, 34% 0, 82% 100%, 0 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Left Section: Form */
.form-section {
  position: relative !important;
  z-index: 2 !important;
  width: 48% !important;
  min-width: 340px !important;
  height: 100% !important;
  padding: 40px 30px 35px 45px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.login-title {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  text-align: center !important;
  margin-bottom: 22px !important;
  letter-spacing: 0.2px !important;
}

.login-form-group {
  margin-bottom: 14px !important;
}

.login-form-group label {
  display: block !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  margin-bottom: 5px !important;
  letter-spacing: 0.2px !important;
}

.login-input-wrapper {
  position: relative !important;
  width: 100% !important;
}

.form-control.login-input {
  width: 100% !important;
  height: 40px !important;
  background-color: #e8f0fe !important;
  border: none !important;
  border-radius: 6px !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-control.login-input::placeholder {
  color: #4b5563 !important;
  opacity: 0.8 !important;
}

.form-control.login-input:focus {
  background-color: #f1f5fe !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6) !important;
}

.password-toggle-icon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  color: #e5bdd7 !important;
  font-size: 16px !important;
  z-index: 10 !important;
  transition: color 0.2s !important;
}

.password-toggle-icon:hover {
  color: #df9fc7 !important;
}

.btn-login-submit {
  width: 100% !important;
  height: 40px !important;
  background-color: #6c757d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin-top: 6px !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.btn-login-submit:hover {
  background-color: #5c636a !important;
  color: #ffffff !important;
}

.btn-login-submit:active {
  transform: scale(0.99) !important;
}

.download-app-wrapper {
  display: flex !important;
  justify-content: center !important;
  margin-top: 18px !important;
}

.btn-download-app {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  background-color: #2ea14d !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 50px !important;
  padding: 6px 18px !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
}

.btn-download-app:hover {
  background-color: #268f43 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  text-decoration: none !important;
}

.btn-download-app i {
  color: #b3f78e !important;
  font-size: 14px !important;
}

/* Right Section: Brand & Logos */
.brand-section {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding-left: 50px !important;
}

.dion-logo {
  width: 185px !important;
  max-width: 80% !important;
  height: auto !important;
  object-fit: contain !important;
  user-select: none !important;
}

.powered-by-box {
  position: absolute !important;
  bottom: 22px !important;
  right: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
}

.powered-by-text {
  font-size: 11px !important;
  color: #6c757d !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px !important;
  line-height: 1 !important;
}

.cbhr-logo {
  height: 22px !important;
  width: auto !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .login-card {
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 20px !important;
  }

  .green-shape {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 85%) !important;
    height: 70% !important;
  }

  .form-section {
    width: 100% !important;
    min-width: unset !important;
    padding: 30px 20px 20px 20px !important;
  }

  .brand-section {
    padding: 20px !important;
    padding-left: 20px !important;
    min-height: 140px !important;
  }

  .powered-by-box {
    position: static !important;
    margin-top: 15px !important;
  }
}

/* ========================================================
   Landing Page Styles & Animations
   ======================================================== */
.landing-hero-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 2 !important;
  max-width: 650px !important;
  width: 100% !important;
}

/* Ambient Pulsing Aura Behind Logo */
.glow-aura {
  position: absolute !important;
  width: 440px !important;
  height: 280px !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(230, 106, 31, 0.28) 45%, rgba(0, 0, 0, 0) 70%) !important;
  border-radius: 50% !important;
  top: 30px !important;
  filter: blur(25px) !important;
  z-index: -1 !important;
  animation: auraPulse 4.5s ease-in-out infinite !important;
  pointer-events: none !important;
}

@keyframes auraPulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

/* Floating Hero Card with DION Logo */
.hero-logo-card {
  position: relative !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  border: 4.5px solid #ffffff !important;
  border-radius: 28px !important;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.85), 0 20px 50px rgba(0, 0, 0, 0.2) !important;
  padding: 45px 65px 35px 65px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  animation: floatHero 4.5s ease-in-out infinite !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease !important;
}

.hero-logo-card:hover {
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.95), 0 25px 60px rgba(0, 0, 0, 0.25) !important;
}

@keyframes floatHero {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Diagonal Light Shimmer Effect */
.hero-logo-card::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -120% !important;
  width: 60% !important;
  height: 200% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.6),
    transparent
  ) !important;
  transform: rotate(25deg) !important;
  animation: shineSweep 5s infinite !important;
  pointer-events: none !important;
}

@keyframes shineSweep {
  0% {
    left: -120%;
  }
  20% {
    left: 160%;
  }
  100% {
    left: 160%;
  }
}

/* Logo Wrapper & Subtle Breathing Animation */
.logo-wrapper {
  position: relative !important;
  display: inline-block !important;
  margin-bottom: 12px !important;
}

.animated-dion-logo {
  width: 250px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08)) !important;
  animation: logoPulse 4.5s ease-in-out infinite !important;
  user-select: none !important;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* HRMS Subtitle */
.brand-subtitle {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.brand-subtitle::before,
.brand-subtitle::after {
  content: '' !important;
  display: inline-block !important;
  width: 24px !important;
  height: 2px !important;
  background: linear-gradient(90deg, #e66a1f, transparent) !important;
  border-radius: 2px !important;
}

.brand-subtitle::after {
  background: linear-gradient(270deg, #e66a1f, transparent) !important;
}

/* Button Styling with Rocket Animation */
.button-wrapper {
  margin-top: 32px !important;
  animation: fadeInUp 0.8s ease 0.3s both !important;
}

a.learn-more {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75em !important;
  padding: 0.95em 2.5em !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #e66a1f 0%, #f39c12 100%) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(230, 106, 31, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  cursor: pointer !important;
}

a.learn-more i {
  font-size: 17px !important;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease !important;
}

a.learn-more:hover {
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(230, 106, 31, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.35) !important;
}

a.learn-more:hover i {
  transform: translate(6px, -6px) rotate(35deg) !important;
}

a.learn-more:active {
  transform: scale(0.96) !important;
}

a.learn-more:active i {
  transform: translate(25px, -25px) rotate(35deg) scale(0.5) !important;
  opacity: 0 !important;
  transition: transform 0.4s ease, opacity 0.3s ease !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .hero-logo-card {
    padding: 35px 25px 25px 25px !important;
    border-radius: 22px !important;
  }

  .animated-dion-logo {
    width: 200px !important;
  }

  .brand-subtitle {
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
  }

  a.learn-more {
    padding: 0.85em 2em !important;
    font-size: 15px !important;
  }
}
