/* General Body Styles */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  background-color: #f8f8f8; /* Light grey background for the whole page */
  color: #333;
  flex-wrap: wrap; /* Allows sections to wrap on smaller screens */
}

/* Left Section (Sign Up Form) */
.left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px; /* Ample padding around content */
  min-width: 320px; /* Ensures content doesn't get too squished */
  box-sizing: border-box;
  background-color: #ffffff; /* White background for the left pane */
}

.signup-container {
  width: 100%;
  max-width: 450px; /* Constrain width for better readability */
  /* No extra padding/border here as the section itself has padding */
}

.back-home {
  align-self: flex-start; /* Aligns to the start of the flex container */
  margin-bottom: 30px;
  color: #6c757d; /* Slightly darker grey for text */
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 0.95em; /* Slightly larger font */
  font-weight: 500;
}

.back-home svg {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  fill: #6c757d;
}

h1 {
  font-size: 2.2em;
  margin-bottom: 8px; /* Reduced margin for closer subtitle */
  color: #343a40; /* Darker text for heading */
  font-weight: 700; /* Bolder heading */
}

p.subtitle {
  font-size: 0.95em;
  color: #6c757d;
  margin-bottom: 35px; /* More space before form starts */
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px; /* Consistent spacing between form groups */
}

.form-row {
  display: flex;
  gap: 20px; /* Space between first and last name fields */
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1; /* Makes each input take equal space in the row */
  margin-bottom: 0; /* Override default form-group margin */
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9em;
  color: #495057; /* Slightly darker label text */
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0; /* Lighter border for inputs */
  border-radius: 8px; /* More rounded corners */
  font-size: 1em;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: #343a40; /* Input text color */
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder {
  color: #adb5bd; /* Lighter placeholder text */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: #ff8c00; /* Orange border on focus */
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2); /* Subtle orange glow on focus */
}

.password-group {
  position: relative;
}

.password-group input {
  padding-right: 45px; /* Space for the eye icon */
}

.password-group .toggle-password {
  position: absolute;
  right: 15px;
  top: 50%; /* Center vertically */
  transform: translateY(calc(-50% + 4px)); /* Adjust for label height */
  cursor: pointer;
  color: #999;
  width: 20px; /* Make icon clickable area larger */
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.password-group .toggle-password svg {
  width: 18px;
  height: 18px;
  fill: #999;
}

.checkbox-group {
  display: flex;
  align-items: flex-start; /* Align checkbox to the top of text */
  margin-bottom: 25px;
  font-size: 0.9em;
  color: #6c757d;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 2px; /* Adjust vertical alignment of checkbox */
  min-width: 18px;
  min-height: 18px;
  accent-color: #ff8c00; /* Orange checkbox */
  border-radius: 4px; /* Slightly rounded checkbox */
  cursor: pointer;
}

.checkbox-group a {
  color: #ff8c00; /* Orange link color */
  text-decoration: none;
  font-weight: 500;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

button.signup-button {
  width: 100%;
  padding: 15px;
  background-color: #ff8c00; /* Orange button */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.25); /* More prominent shadow */
}

button.signup-button:hover {
  background-color: #e67e00; /* Slightly darker orange on hover */
  transform: translateY(-2px); /* Lift effect */
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.35); /* Enhanced shadow on hover */
}

.signin-link {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9em;
  color: #6c757d;
}

.signin-link a {
  color: #ff8c00;
  text-decoration: none;
  font-weight: 500;
}

.signin-link a:hover {
  text-decoration: underline;
}

/* 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) {
  body {
    flex-direction: column; /* Stack sections vertically on smaller screens */
  }

  .left-section,
  .right-section {
    width: 100%;
    padding: 30px 25px; /* Adjust padding for smaller screens */
  }

  .signup-container {
    max-width: 100%; /* Allow full width on small screens */
  }

  .form-row {
    flex-direction: column; /* Stack first/last name fields */
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 20px; /* Add back margin when stacked */
  }

  h1 {
    font-size: 2em;
  }

  .right-section {
    min-height: 280px; /* Ensure right section has some height */
  }

  .right-section .logo {
    font-size: 3em;
  }

  .right-section .logo svg {
    width: 50px;
    height: 50px;
  }

  .right-section .slogan {
    font-size: 1.1em;
  }

  .floating-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .left-section,
  .right-section {
    padding: 20px 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  p.subtitle {
    font-size: 0.85em;
    margin-bottom: 25px;
  }

  .back-home {
    font-size: 0.8em;
    margin-bottom: 20px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"] {
    padding: 10px 12px;
    font-size: 0.9em;
  }

  button.signup-button {
    padding: 12px;
    font-size: 1em;
  }

  .right-section .logo {
    font-size: 2.5em;
    gap: 10px;
  }

  .right-section .logo svg {
    width: 40px;
    height: 40px;
  }

  .right-section .slogan {
    font-size: 0.95em;
  }

  .floating-button {
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    bottom: 15px;
    right: 15px;
  }
}
