/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Body and Background */
html, body {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(to right, #4e54c8, #8f94fb);  /* Rich gradient */
  font-size: 16px;
  color: #333;
}

/* Wrapper Container */
.wrapper {
  max-width: 420px;
  background: #fff;
  padding: 40px;
  border-radius: 15px;  /* Smooth rounded edges */
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.15); /* Deeper shadow for luxury effect */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrapper:hover {
  transform: translateY(-5px);  /* Subtle hover effect */
  box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

/* Title Styling */
.title-text h5 {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* Input Fields */
.field {
  margin-bottom: 20px; /* Increase the bottom margin for spacing */
  width: 100%;
}

.field input {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
  transition: all 0.3s ease;
}

.field input:focus {
  border-color: #3498db;  /* Blue focus */
  box-shadow: 0px 6px 12px rgba(52, 152, 219, 0.3); /* Blue glow */
}

.field input::placeholder {
  color: #aaa;
}

/* Button Styles */
.mini-btn {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #3498db;
  color: #fff;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mini-btn:hover {
  background-color: #2980b9;
}

/* Submit Button */
.field.btn input[type="submit"] {
  background: linear-gradient(to right, #8e44ad, #3498db);  /* Rich gradient */
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.field.btn input[type="submit"]:hover {
  background: linear-gradient(to left, #8e44ad, #3498db);
}

/* Forgot Password Link */
.pass-link {
  margin-bottom: 20px; /* Add some margin below to space it from the button */
  text-align: left; /* Align the text to the left */
}

.pass-link a {
  font-size: 19px; /* You can adjust the size if needed */
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pass-link a:hover {
  color: #1a5ec8;
}

/* Spinner */
#spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Keyframe for Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/Failure Message */
#registerMessage {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 2px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  transition: top 0.5s ease-in-out;
  font-size: 16px;
  z-index: 9999;
}

#registerMessage.success {
  border-color: #2ecc71;
  color: #2ecc71;
}

#registerMessage.error {
  border-color: #e74c3c;
  color: #e74c3c;
}

#registerMessage p {
  margin: 0;
}

/* Links */
.signup-link a {
  color: #3498db;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: #1a5ec8;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .wrapper {
    padding: 30px;
    width: 90%;
  }

  .title-text h5 {
    font-size: 30px;
  }
}