/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #eef2f3, #d9e2ec);
  color: #333;
  padding: 20px;
}

/* Container */
.signup-container {
  max-width: 500px;
  margin: 2rem auto;
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.6s ease-in-out;
  transition: transform 0.3s ease;
  width: 100%;
}

.signup-container:hover {
  transform: translateY(-3px);
}

/* Headings */
.signup-container h1,
.signup-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #0056b3;
  font-weight: 700;
}

/* Form Styles */
form label {
  display: block;
  margin-top: 1.2rem;
  font-weight: 600;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"],
form input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
  outline: none;
}

/* Submit Button */
button[type="submit"] {
  margin-top: 2rem;
  width: 100%;
  padding: 0.95rem;
  background-color: #0056b3;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
  background-color: #00408a;
  transform: scale(1.03);
}

/* Alert Box */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background-color: #d9534f;
  text-align: center;
  font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  html, body {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .signup-container {
    width: 100vw;
    max-width:100%;
    box-sizing: border-box;
    margin: 0;
    padding: 1.5rem 1rem;
    border-radius: 0;
    height: 100%;
    min-height: 100vh;
    box-shadow: none;
  }

  form input,
  button[type="submit"] {
    font-size: 1rem;
  }

  .signup-container h1,
  .signup-container h2 {
    font-size: 1.5rem;
    text-align: center;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(to right, #1e1e1e, #2d2d2d);
    color: #eee;
  }

  .signup-container {
    background-color: #2b2b2b;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.05);
  }

  form label {
    color: #ddd;
  }

  form input[type="text"],
  form input[type="email"],
  form input[type="tel"],
  form input[type="password"],
  form input[type="file"] {
    background-color: #1c1c1c;
    color: #eee;
    border: 1px solid #444;
  }

  form input:focus {
    border-color: #66b0ff;
    box-shadow: 0 0 8px rgba(102, 176, 255, 0.3);
  }

  button[type="submit"] {
    background-color: #007bff;
    color: white;
  }

  button[type="submit"]:hover {
    background-color: #0056b3;
  }

  .alert {
    background-color: #c9302c;
    color: #fff;
  }
}