/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #d9e4ec, #f0f4f8);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0; /* Remove horizontal padding */
  margin: 0;
}

/* Mobile-friendly layout fix */
.form-wrapper {
  background: white;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 450px;
  width: 100%;
  margin: 20px; /* Add margin for spacing */
  animation: slideUp 0.8s ease;
  box-sizing: border-box;
}


@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="password"],
form input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.3s ease;
}

form input:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

.password-container {
  position: relative;
}

.password-container input {
  padding-right: 40px;
}

.password-container span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: #007bff;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

button[type="submit"]:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 91, 187, 0.3);
}


/* ----------- Responsive Media Queries ----------- */

/* Small devices (phones, less than 600px) */
@media (max-width: 599px) {
  .form-wrapper {
    padding: 20px 25px;
    margin: 10px;
    border-radius: 10px;
  }

  form input[type="text"],
  form input[type="email"],
  form input[type="number"],
  form input[type="password"],
  form input[type="file"],
  button[type="submit"] {
    font-size: 14px;
    padding: 10px 12px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .password-container span {
    font-size: 16px;
  }
}


 /* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #d9e4ec, #f0f4f8);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px; /* Prevents overflow */
}

.form-wrapper {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 450px;
  animation: slideUp 0.8s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="password"],
form input[type="file"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

form input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.password-container {
  position: relative;
}

.password-container input {
  padding-right: 40px;
}

.password-container span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: #007bff;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

button[type="submit"]:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 91, 187, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .form-wrapper {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }

  h2 {
    font-size: 20px;
  }

  form input,
  button[type="submit"] {
    font-size: 14px;
  }

  .password-container span {
    font-size: 16px;
  }
}
