* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
  }
  
  .card-layout {
    display: flex;
    flex-direction: row; /* Change to row for side-by-side layout */
    width: 100%;
  }
  
  
  .login-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 960px; /* Adjusted for left-right layout */
    margin: 40px auto;
  }
  
  .login-image {
    width: 50%; /* Take up half the space */
    height: 100%;
    overflow: hidden;
  }
  
  .login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .login-form {
    width: 50%; /* Take up the other half */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .logo {
    text-align: center;
    background-color: #3b5998;
    color: white;
  }
  
  .logo h1 {
    font-size: 24px;
    font-weight: 600;
  }
  
  .logo img {
    height: 120px;
    width: auto;
  }
  
  .login-form h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
  }

  
.form-contents {
    padding: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
  }
  
  .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s;
  }
  
  .form-group input:focus {
    border-color: #3b5998;
    outline: none;
  }
  
  .remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
  }
  
  .remember-me {
    display: flex;
    align-items: center;
  }
  
  .remember-me input {
    margin-right: 8px;
  }
  
  .forgot-password a {
    color: #3b5998;
    text-decoration: none;
  }
  
  button {
    width: 100%;
    padding: 12px;
    background-color: #3b5998;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #2d4373;
  }
  
  .register-link,
  .login-link,
  .back-to-login {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
  }
  
  .register-link a,
  .login-link a,
  .back-to-login a {
    color: #3b5998;
    text-decoration: none;
    font-weight: 500;
  }
  
  #error-message {
    color: #d93025;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    min-height: 20px;
  }
  
  /* Registration-specific styles */
  .register-card {
    max-width: 480px;
  }
  
  .password-requirements {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 13px;
  }
  
  .password-requirements p {
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
  }
  
  .password-requirements ul {
    list-style-type: none;
    padding-left: 5px;
  }
  
  .password-requirements li {
    margin-bottom: 3px;
    color: #777;
    position: relative;
    padding-left: 22px;
  }
  
  .password-requirements li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #ccc;
  }
  
  .password-requirements li.valid {
    color: #28a745;
  }
  
  .password-requirements li.valid::before {
    content: "✓";
    color: #28a745;
  }

  @media (max-width: 768px) {
    .card-layout {
      flex-direction: column;
    }
  
    .login-card {
        flex-direction: column;
        width: 100%;
        max-width: 400px; /* Optional: limit width on mobile */
        margin: 20px auto; /* Centered horizontally */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  
    .login-image {
      display: none; /* Hide the image on small screens */
    }
  
    .login-form {
      width: 100%;
    }
  
    .form-contents {
      padding: 20px;
    }
  
    .logo img {
      height: 100px;
    }
  }
  