/* front.css */

:root {
  --primary-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
  --primary-gradient-hover: linear-gradient(90deg, #2575fc, #6a11cb);
}

body {
  font-family: 'Noto Serif', 'Noto Serif Sinhala', serif;
  background-color: #f8f9fa;
  background: var(--primary-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  /* vertical scrollbar */
  overflow-x: hidden;
  /* hide horizontal scrollbar */
  align-items: center;
  /* Specific to login.php, we'll keep it here, but override for index.php as needed */
  justify-content: center;
  /* Specific to login.php, we'll keep it here, but override for index.php as needed */
}

/* Override body alignment defaults for landing page */
body.landing-page {
  background: #f8f9fa;
  align-items: stretch;
  justify-content: flex-start;
}

/* Theme Header styling (eoffice.lk style) */
#themeHeader {
  background: #ffffff;
  padding: 15px 0;
  border-bottom: 3px solid #6a11cb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  width: 100%;
  z-index: 10;
  position: relative;
}

#themeHeader .siteName .nameBox {
  padding: 0 15px;
}

@media (max-width: 768px) {
  #themeHeader .siteName {
    margin: 15px 0;
  }
}


/* Hero / Background Shapes */
.hero-section {
  position: relative;
  background: var(--primary-gradient);
  padding: 2rem 0;
  color: white;
  overflow: hidden;
}

/* Background Slider styling */
.bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Solid black with 40% opacity */
  z-index: 1;
}

/* Ensure background shapes float between overlay and content */
.bg-shape {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  animation: float 6s ease-in-out infinite alternate;
}

/* Specific to the login page shapes */
#bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.login-page-shape {
  fill: rgba(255, 255, 255);
}

/* Landing page shapes */
.shape1 {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.shape2 {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  animation-duration: 8s;
}

@keyframes float {
  0% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(0px, 20px) scale(1.05) rotate(15deg);
  }

  100% {
    transform: translate(0px, -20px) scale(0.95) rotate(-15deg);
  }
}

.hero-content h1 {
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 1.75rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 1.4px;
  line-height: 55px;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-content .infobtn {
  letter-spacing: 1px;
  font-weight: 500;
  border-radius: 3px;
}

/* Form Card Styles */
.login-card {
  padding: 3rem;
  border-radius: 3px;
  background-color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in-out;
  position: relative;
  z-index: 2;
  width: 100%;
}

.login-page .login-card {
  max-width: 450px;
  border-radius: 3px;
  /* legacy style from the login.php */
}

@media (max-width: 576px) {
  .login-page .login-card {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 3rem;
  }
}

.login-card .logo {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 230px;
  border-radius: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-floating {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-floating label {
  color: #212529;
}

.form-control {
  font-size: 14px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #6a11cb;
  box-shadow: none;
}

.input-feedback {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  display: block;
}

.input-error {
  color: #dc3545;
}

.input-success {
  color: #28a745;
}

.btn-login {
  height: 55px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary {
  /* Keep backwards compat for login page */
  height: 55px;
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--primary-gradient);
  border: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-login:hover,
.btn-primary:hover {
  background: var(--primary-gradient-hover);
  color: white;
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.captcha-container {
  text-align: center;
  margin: 15px 0;
}

@media screen and (max-width: 400px) {
  .g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
  }
}

/* Information Section */
.info-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.info-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.info-card:hover {
  transform: translateY(-10px);
}

.info-icon {
  font-size: 3rem;
  color: #6a11cb;
  margin-bottom: 1rem;
}

/* Footer overrides if needed */