/* === Background & Animation === */
body {
  margin: 0;
  background: linear-gradient(-45deg, #6a11cb, #2575fc, #43cea2, #185a9d);
  background-size: 400% 400%;
  animation: gradientMotion 18s ease infinite;
  /* do not make body flex container that forces shrink */
}

/* @keyframes gradientMotion {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
} */

/* === Containers & Layout === */
.big-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  padding: 20px; /* Equal padding on all sides */
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.page-content-wrapper {
  background-image: url("/files/login_back.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* === Login Card (Glass style) === */
.login-content {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-radius: 16px; /* Reduced by 20% from 20px */
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35); /* Reduced by 20% */
  border: 1px solid rgba(255, 255, 255, 0.18);

  width: 100%;
  max-width: 360px;   /* Reduced by 20% from 450px */
  margin: 0 auto;
  padding: 32px;      /* Reduced by 20% from 40px */

  overflow: hidden;
}

/* Shimmer effect on login box */
.login-content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shimmer 8s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

/* @keyframes shimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
} */

/* === Logo (inside login card) === */
.logo-wrapper {
  text-align: center;
  margin-bottom: 24px; /* Reduced by 20% from 30px */
}

.login-logo {
  width: 100px;        /* Reduced by 20% from 125px */
  height: 100px;       /* Reduced by 20% from 125px */
  object-fit: contain;
  margin: 0 auto;
}

/* === Welcome Section === */
.welcome-sec {
  text-align: center;
  margin-bottom: 24px; /* Reduced by 20% from 30px */
}

.welcome-sec span {
  font-size: 22px;    /* Reduced by 20% from 27px */
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.welcome-sec p {
  color: #e5e5e5;
  margin-top: 0;
  font-size: 14px;
}

/* === Form Elements === */
.form-group {
  margin-bottom: 16px; /* Reduced by 20% from 20px */
}

.input-title p {
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
  font-size: 14px;
}

.form-control {
  height: 22px;       /* Reduced by 20% from 28px */
  border-radius: 18px; /* Reduced by 20% from 23px */
  border: 1px solid #717772;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
}

.form-control::placeholder {
  color: #ccc;
  font-size: 13px;
}

.btn-login {
  background-color: #3498db;
  border: none;
  height: 36px;       /* Reduced by 20% from 45px */
  font-weight: 500;
  color: #fff;
  border-radius: 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

a {
  font-size: 11px;    /* Reduced by ~20% from 12px */
  color: #e3e3e3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-card-body {
  height: 300px;      /* Reduced by 20% from 375px */
}

.btn.btn-primary{
  background-color: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;  
  transition: all 0.3s ease;
}

.btn.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.toggle-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 1.5em;
  height: 1.5em;
  color: #666;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.toggle-password svg {
  width: 100%;
  height: 100%;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

/* === Enhanced Responsive Design === */

/* Large laptops */
@media (max-width: 1440px) {
  .big-container {
    padding: 20px;
  }
}

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .big-container {
    padding: 20px;
  }
  
  .login-content {
    max-width: 320px;
    padding: 28px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .big-container {
    padding: 20px;
    justify-content: center;
  }
  
  .login-content {
    max-width: 300px;
    padding: 24px;
  }
  
  .welcome-sec span {
    font-size: 20px;
  }
  
  .welcome-sec p {
    font-size: 13px;
  }
  
  .login-logo {
    width: 85px;
    height: 85px;
  }
  
  .logo-wrapper {
    margin-bottom: 20px;
  }
  
  .form-control {
    height: 20px;
  }
  
  .btn-login {
    height: 34px;
  }
}

/* Small tablets and large phones */
@media (max-width: 600px) {
  .big-container {
    padding: 20px;
  }
  
  .login-content {
    max-width: 280px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .big-container {
    padding: 20px;
    justify-content: center;
  }
  
  .login-content {
    max-width: 100%;
    padding: 24px;
    border-radius: 14px;
  }
  
  .welcome-sec span {
    font-size: 18px;
  }
  
  .welcome-sec p {
    font-size: 13px;
  }
  
  .login-logo {
    width: 80px;
    height: 80px;
  }
  
  .logo-wrapper {
    margin-bottom: 18px;
  }
  
  .form-group {
    margin-bottom: 14px;
  }
  
  .form-control {
    height: 20px;
  }
  
  .btn-login {
    height: 34px;
  }
  
  .page-card-body {
    height: auto;
    min-height: 280px;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .big-container {
    padding: 15px;
  }
  
  .login-content {
    padding: 20px;
  }
  
  .welcome-sec span {
    font-size: 17px;
  }
  
  .login-logo {
    width: 70px;
    height: 70px;
  }
  
  .form-control {
    height: 18px;
  }
  
  .btn-login {
    height: 32px;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .big-container {
    padding: 20px;
    align-items: center;
    justify-content: center;
  }
  
  .login-content {
    max-width: 280px;
    padding: 20px;
  }
  
  .logo-wrapper {
    margin-bottom: 15px;
  }
  
  .login-logo {
    width: 70px;
    height: 70px;
  }
  
  .welcome-sec {
    margin-bottom: 15px;
  }
  
  .form-group {
    margin-bottom: 12px;
  }
  
  .page-card-body {
    height: auto;
    min-height: 220px;
  }
}

/* High-resolution displays */
@media (min-width: 1920px) {
  .big-container {
    padding: 30px;
    justify-content: center;
  }
  
  .login-content {
    max-width: 380px;
    padding: 36px;
  }
  
  .login-logo {
    width: 110px;
    height: 110px;
  }
  
  .welcome-sec span {
    font-size: 24px;
  }
}