:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --dark-accent: #2c3e50;
    --light-accent: #ecf0f1;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --text-dark: #34495e;
    --text-light: #7f8c8d;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
  
  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--secondary-gradient);
    color: var(--text-dark);
    overflow: hidden;
  }
  a.btn.btn-sm {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease-in-out;
  }
  
  a.btn.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .site-header {
    background: linear-gradient(135deg, #95ecd9 0%, #5c7aea 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Light grey for an elegant look */
    padding: 0.75rem 0;
    position: relative;
    z-index: 1000;
}
  
  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  .site-name img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    height: 82vh;
  }
  
  .image-container {
    flex: 1;
    background: url('../images/login.jpeg') center/cover no-repeat;
    position: relative;
    display: block;
    }
  
  .image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.6);
  }
  
  .login-container {
    flex: 1;
    max-width: 500px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgb(255, 255, 255);
    position: relative;
  }
  
  .login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
  }
  
  h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-accent);
    position: relative;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
  }
  
  .login-form {
    margin-top: 1rem;
  }
  
  .input-container {
    position: relative;
    margin-bottom: 1.25rem;
  }
  
  .input-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: var(--transition);
  }
  
  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #dfe6e9;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: var(--transition);
    background-color: #f8f9fa;
  }
  
  input[type="text"]:focus,
  input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
    background-color: white;
  }
  
  input[type="text"]:focus + i,
  input[type="password"]:focus + i {
    color: #667eea;
  }
  
  .remember-me {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
  }
  
  .remember-me input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: #667eea;
  }
  
  button[type="submit"] {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin: 1.25rem 0;
  }
  
  button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .links-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .link-item {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
  }
  
  .link-item a {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: var(--transition);
  }
  
  .link-item a:hover {
    text-decoration: underline;
  }
  
 /* Footer Styling */
 .site-footer {
  background: #2d3748; /* Dark blue-gray */
  color: white;
  padding: 1rem 0;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm) 0px -2px 4px;
}
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-height: none;
        margin: 0; /* Changed from 1rem to 0 */
        width: 100%;
        border-radius: 0;
      }
      
    .image-container {
      display: none;
    }
  
    .login-container {
      max-width: 100%;
      padding: 1.5rem;
    }
  
    h2 {
      font-size: 1.5rem;
    }
  
    .input-container {
      margin-bottom: 1rem;
    }
  
    button[type="submit"] {
      margin-top: 1rem;
    }
  
    .links-container {
      flex-direction: row;
      justify-content: space-between;
      margin-top: 1rem;
    }
  
    .link-item {
      font-size: 0.75rem;
    }
  
    .link-item a {
      color: #667eea;
    }
  }
  
  /* Modal Styles */
  .modal-content {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  
  .modal-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.25rem;
  }
  
  .modal-title {
    font-weight: 600;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    border: none;
    padding: 1rem 1.5rem;
  }
  
  .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.5rem 1.25rem;
  }
  
  .btn-secondary {
    background: #bdc3c7;
    border: none;
    padding: 0.5rem 1.25rem;
  }
  
  /* Animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .login-container {
    animation: fadeInUp 0.5s ease-out;
  }
  
  /* Error Message */
  .error-message {
    color: var(--error-color);
    background-color: #fdedee;
    border: 1px solid #f8d7da;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    animation: fadeInUp 0.3s ease-out;
  }
  
  