/* Modern Login Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  height: 100vh;
}

.login-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Left Side - Welcome Section */
.login-left {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  overflow: hidden;
}

.gradient-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0066CC 0%, #004080 25%, #0052CC 50%, #003366 75%, #0066CC 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.2);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  bottom: -50px;
  left: -50px;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  top: 50%;
  left: 10%;
  animation-delay: 4s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  bottom: 20%;
  right: 20%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.welcome-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 500px;
  text-align: left;
}

.logo-container {
  margin-bottom: 40px;
  text-align: center;
}

.company-logo {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-container-small {
  text-align: center;
  margin-bottom: 30px;
}

.company-logo-small {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.welcome-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-description {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Right Side - Login Form */
.login-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.login-form-wrapper {
  width: 100%;
  max-width: 450px;
  padding: 40px;
}

.login-title {
  font-size: 32px;
  font-weight: 600;
  color: #0066CC;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid #c33;
}

.demo-message {
  background: #e8f4f8;
  color: #2c3e50;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.demo-message a {
  color: #0066CC;
  text-decoration: none;
  font-weight: 500;
}

.demo-message a:hover {
  text-decoration: underline;
  color: #004080;
}

.form-group {
  margin-bottom: 24px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #0066CC;
  font-size: 18px;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #0066CC;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.form-input[type="password"] {
  letter-spacing: 2px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066CC' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.remember-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #0066CC;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
  background: #fff;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #0066CC;
  border-color: #0066CC;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-text {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.forgot-password {
  color: #0066CC;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #004080;
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0066CC 0%, #004080 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
  position: relative;
  overflow: hidden;
}

.login-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-button:hover::before {
  width: 300px;
  height: 300px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
  background: linear-gradient(135deg, #0052CC 0%, #003366 100%);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 968px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-left {
    min-height: 40vh;
    padding: 40px 30px;
  }
  
  .welcome-title {
    font-size: 36px;
  }
  
  .welcome-description {
    font-size: 16px;
  }
  
  .company-logo {
    max-height: 120px;
  }
  
  .company-logo-small {
    max-height: 60px;
  }
  
  .login-right {
    min-height: 60vh;
    padding: 30px 20px;
  }
  
  .login-form-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .welcome-title {
    font-size: 28px;
  }
  
  .welcome-description {
    font-size: 14px;
  }
  
  .company-logo {
    max-height: 100px;
  }
  
  .company-logo-small {
    max-height: 50px;
  }
  
  .logo-container {
    margin-bottom: 30px;
  }
  
  .logo-container-small {
    margin-bottom: 20px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .form-input {
    padding: 14px 18px 14px 45px;
    font-size: 14px;
  }
  
  .login-button {
    padding: 14px;
    font-size: 16px;
  }
}

/* RTL Support */
[dir="rtl"] .input-icon {
  left: auto;
  right: 18px;
}

[dir="rtl"] .form-input {
  padding-left: 20px;
  padding-right: 50px;
}

[dir="rtl"] .checkmark {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] select.form-input {
  background-position: left 18px center;
  padding-left: 45px;
  padding-right: 20px;
}
