/* General styling */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container for the entire page */
.container {
  display: flex;
  width: 100%;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Left section - Sign In form */
.left-section {
  flex: 1;
  min-width: 300px; /* Minimum width for the left section */
  background-color: #fff;
  display: flex;
  flex-direction: column;
  padding: 40px;
  box-sizing: border-box;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
}

.signin-content {
  max-width: 400px; /* Max width for the sign-in form */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.back-home {
  position: absolute;
  top: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.back-home svg {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.signin-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.signin-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.input-wrapper {
  position: relative;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

/* Adjusted padding for password field to make space for the icon */
.form-group input[type="password"] {
  padding-right: 45px; /* Increased padding to prevent overlap with icon */
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  border-color: #ff7f00; /* Orange focus color */
}

.input-wrapper svg {
  position: absolute;
  right: 15px; /* Adjusted to sit within the new padding */
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  width: 20px; /* Ensure consistent icon size */
  height: 20px; /* Ensure consistent icon size */
}

.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  appearance: none; /* Hide default checkbox */
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
}

.checkbox-container input:checked {
  background-color: #ff7f00; /* Orange checked background */
  border-color: #ff7f00;
}

.checkbox-container input:checked::after {
  content: "✔"; /* Checkmark */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
}

.forgot-password {
  color: #ff7f00;
  text-decoration: none;
  font-weight: 500;
}

.signin-button {
  width: 100%;
  padding: 14px;
  background-color: #ff7f00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.signin-button:hover {
  background-color: #e67300;
}

.signup-text {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #666;
}

.signup-text a {
  color: #ff7f00;
  text-decoration: none;
  font-weight: 500;
}

/* Right section - Branding */
.right-section {
  flex: 1;
  min-width: 400px; /* Minimum width for the right section */
  background-color: #8b4513; /* Darker brown color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* Hide overflowing patterns */
}

.right-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.05) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.05) 100%
    );
  background-size: 40px 40px;
  opacity: 0.8;
  z-index: 0;
}

.brand-content {
  text-align: center;
  z-index: 1; /* Ensure content is above pattern */
}

.brand-logo {
  font-size: 60px; /* Larger font size for the Bengali text */
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block; /* To allow pseudo-elements positioning */
}

.brand-logo::before {
  content: "◫"; /* A simple geometric icon */
  position: absolute;
  left: -40px; /* Adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #ff7f00; /* Orange color for the icon */
}

.brand-tagline {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 300px;
}

.floating-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: #ff7f00;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 2;
}

.floating-button:hover {
  transform: translateY(-5px);
}

.floating-button svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Stack sections vertically on small screens */
  }

  .left-section,
  .right-section {
    min-width: unset; /* Remove min-width constraint */
    width: 100%; /* Take full width */
    padding: 30px 20px;
  }

  .back-home {
    top: 20px;
    left: 20px;
  }

  .signin-content {
    padding: 0;
  }

  .right-section {
    min-height: 300px; /* Ensure right section has some height on small screens */
  }

  .brand-logo {
    font-size: 48px;
  }

  .brand-logo::before {
    left: -30px;
    font-size: 30px;
  }

  .brand-tagline {
    font-size: 16px;
  }

  .floating-button {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .signin-title {
    font-size: 28px;
  }

  .signin-subtitle {
    font-size: 13px;
  }

  .form-group label,
  .options-row,
  .signup-text {
    font-size: 13px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .signin-button {
    padding: 12px;
    font-size: 15px;
  }
}
