/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Screen Reader Only Class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* Ensures the text is not visible */
  border: 0;
}

/* Body Styling */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #e0e0e0; /* Light Grey Background */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container Styling */
.container {
  width: 100%;
  max-width: 420px; /* Slightly wider to accommodate padding */
  padding: 20px;
  position: relative;
}

/* Form Box Styling (Shared by Login and Signup) */
.form-box {
  background: #ffffff;
  padding: 50px 40px; /* Increased padding for better spacing */
  border-radius: 20px; /* More pronounced border-radius */
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

/*.form-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}*/

.form-box h2 {
  text-align: center;
  margin-bottom: 35px;
  color: #333333;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Form Group Styling */
.form-group {
  margin-bottom: 25px;
}

.form-group input {
  width: 100%;
  padding: 14px 22px;
  border: 2px solid #ccc;
  border-radius: 10px; /* Rounded input fields */
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  border-color: #2196F3;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
  outline: none;
}

/* Options Container (Login Page) */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Checkbox Group (Signup Page) */
.checkbox-group {
  display: flex;
  align-items: center;
}

/* Checkbox Container (Common for Login and Signup) */
.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #555555;
}

/* Hide the default checkbox */
.checkbox-container input {
  opacity: 0;
  position: absolute;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom Checkbox */
.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 6px; /* Rounded checkmark */
  margin-right: 10px;
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #2196F3;
  border-color: #2196F3;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Forgot Password and Terms Links Styling */
.link {
  color: #2196F3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link:hover {
  color: #0b7dda;
  text-decoration: underline;
}

/* Adjust link inside checkbox-container */
.checkbox-container .link {
  margin-left: 5px; /* Adds space between checkbox and link */
}

/* Submit Button Styling */
.btn {
  width: 100%;
  padding: 14px;
  background-color: #2196F3;
  border: none;
  border-radius: 25px; /* Rounded buttons */
  color: white;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #0b7dda;
  transform: scale(1.02);
}

/* Switch Form Text */
.switch-form {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #555555;
}

.switch-form .link {
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 450px) {
  .form-box {
    padding: 30px 25px;
  }

  .form-box h2 {
    margin-bottom: 25px;
    font-size: 24px;
  }

  .form-group input {
    padding: 12px 18px;
    font-size: 14px;
  }

  .btn {
    font-size: 16px;
    padding: 12px;
  }

  .checkbox-container {
    font-size: 13px;
  }

  .switch-form {
    font-size: 13px;
  }
}