/* Reset default styles and set base font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  /* Main container */
  .container {
    width: 100%;
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .form-contents {
    padding: 30px;
}
  
  /* Layout for login card */
  .login-card {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  
  /* Left image section */
  .login-image {
    width: 50%;
    background-color: #f5f5f5;
  }
  
  .login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

  }
  
  /* Right form section */
  .login-form {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .logo {
    text-align: center;
    background-color: #3b5998;
    color: white;
  }
  
  .logo img {
    max-height: 80px;
  }
  
  h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
  }
  
  #error-message {
    color: #d93025;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    min-height: 20px;
  }
  
  /* Form group styling */
  .form-group {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
  }
  
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="checkbox"],
  input[type="submit"],
  input[type="button"] {
    font-size: 14px;
  }
  
  input[type="email"],
  input[type="password"],
  input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
  }
  
  input[type="email"]:focus,
  input[type="password"]:focus,
  input[type="text"]:focus {
    border-color: #3b5998;
    outline: none;
  }
  
  /* Remember me & forgot password */
  .remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
  }
  
  .remember-me label {
    margin-left: 5px;
  }
  
  .forgot-password a {
    color: #3b5998;
    text-decoration: none;
  }
  
  .forgot-password a:hover {
    text-decoration: underline;
  }
  
  /* Submit button */
  button,
  input[type="submit"],
  input[type="button"] {
    width: 100%;
    padding: 12px;
    background-color: #3b5998;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover {
    background-color: #2d4373;
  }
  
  /* Registration link */
  .login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
  }
  
  .login-link a {
    color: #3b5998;
    text-decoration: none;
  }
  
  .login-link a:hover {
    text-decoration: underline;
  }
  
  @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);
        border-radius: 10px; /* Adjust to make more or less curved */

    }
  
    
    .login-image {
      display: none; /* Hide the image on small screens */
    }
  
    .login-form {
      width: 100%;
    }
  
    .form-contents {
        padding: 30px;

    }
  
    .logo img {
      height: 100px;
    }
  }
  