/* Body wrapper */
body.signup-page {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
}

/* Background blur */
.signup-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.signup-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/boracay.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  filter: blur(8px);
  z-index: -1;
}

/* Signup Box */
.signup-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 600px; /* wider than login */
  max-width: 90%;
  padding: 40px 50px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 40px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 2;
  margin: 30px auto;
}

/* Signup Header */
.signup-box h2 {
  color: #222;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.signup-box p {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 25px;
  text-align: center;
}

/* Input Fields */
.input-box {
  margin-bottom: 25px;
  width: 100%;
  position: relative;
}

.input-box label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #222;
}

.input-box .input-field {
  width: 100%;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 15px;
  transition: 0.3s;
  border: 1px solid #ebebeb;
  outline: none;
}

.input-box .input-field:focus {
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
}

::placeholder {
  font-weight: 500;
  color: #555;
}

/* Form Row for multiple inputs side by side */
.form-row {
  display: flex;
  gap: 20px;
}

/* Submit Button */
.submit-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.submit-btn {
  width: 100%;
  height: 55px;
  background: #222;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: #373737;
  transform: scale(1.03);
}

/* Sign In Link */
.signin-link {
  text-align: center;
  font-size: 15px;
  margin-top: 20px;
}

.signin-link a {
  color: #589afe;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.signin-link a:hover {
  color: #4178c2;
}

/* Terms and Conditions */
.terms {
  text-align: center;
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.terms a {
  color: #589afe;
  text-decoration: none;
  transition: color 0.3s;
}

.terms a:hover {
  color: #4178c2;
}

.toggle-password {
  position: absolute;
  right: 20px;
  top: 68%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.toggle-password img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.error-messages {
  background: linear-gradient(
    135deg,
    rgba(255, 87, 87, 0.08) 0%,
    rgba(255, 87, 87, 0.02) 100%
  );
  border: none;
  border-left: 3px solid #ff5757;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: slideInDown 0.4s ease-out;
}

.error-messages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-messages li {
  color: #2c3e50;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.error-messages li:last-child {
  margin-bottom: 0;
}

.error-messages li:before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: #ff5757;
  font-size: 14px;
}

.success-message {
  background: linear-gradient(
    135deg,
    rgba(46, 213, 115, 0.08) 0%,
    rgba(46, 213, 115, 0.02) 100%
  );
  border: none;
  border-left: 3px solid #2ed573;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: #2c3e50;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  backdrop-filter: blur(10px);
  animation: slideInDown 0.4s ease-out;
  position: relative;
}

.success-message:before {
  content: "✓";
  display: inline-block;
  margin-right: 8px;
  color: #2ed573;
  font-size: 16px;
  font-weight: bold;
}

.input-field.error {
  border-color: #ff5757 !important;
  background: rgba(255, 87, 87, 0.03);
  box-shadow: 0 0 0 3px rgba(255, 87, 87, 0.1);
  animation: shake 0.5s ease-in-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  20%,
  40%,
  60%,
  80% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
}

/* Modern toast-style notification */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(2px);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notification-overlay.show {
  opacity: 1;
}

/* Subtle form enhancements */
.input-field:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Password strength indicator */
.password-requirements {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 4px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-requirements.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.password-requirements.has-errors {
  border-left: 3px solid #ff5757;
  background: linear-gradient(
    135deg,
    rgba(255, 87, 87, 0.08) 0%,
    rgba(255, 87, 87, 0.02) 100%
  );
}

.requirement {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
  color: #64748b;
  transition: all 0.3s ease;
}

.requirement:last-child {
  margin-bottom: 0;
}

.requirement.valid {
  color: #10b981;
  transform: scale(1.02);
}

.requirement.invalid {
  color: #ef4444;
  animation: pulseError 0.5s ease-in-out;
}

.requirement.neutral {
  color: #64748b;
}

.requirement-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.requirement.valid .requirement-icon {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.requirement.invalid .requirement-icon {
  background: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.requirement.neutral .requirement-icon {
  background: #e2e8f0;
  color: #64748b;
}

@keyframes pulseError {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Enhanced password field styling when invalid */
.password-invalid {
  border-color: #ff5757 !important;
  background: rgba(255, 87, 87, 0.03) !important;
  box-shadow: 0 0 0 3px rgba(255, 87, 87, 0.1) !important;
}

/* Input box positioning for absolute password feedback */
.input-box {
  position: relative;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .signup-box {
    width: 90%;
    padding: 30px 25px;
  }

  .form-row {
    flex-direction: column;
  }

  .input-box .input-field {
    height: 45px;
    padding: 0 15px;
    font-size: 0.95rem;
  }

  .submit-btn {
    height: 50px;
  }
}
