/* Consistent styling with Login page */

.signup-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  overflow: hidden;
}

.signup-card {
  background: #fff;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 92vh;
  overflow-y: hidden;
}

.signup-card .row {
  margin: 0;
}

.signup-card .col-lg-6,
.signup-card .col-md-6 {
  padding: 0;
}

/* Reduced padding */
.signup-form-col > .p-4 {
  padding: 0.6rem !important;
}

@media (min-width: 992px) {
  .signup-form-col > .p-4 {
    padding: 0.85rem 1.8rem !important;
  }
}

/* Logo - smaller */
.logo-signup-img img {
  max-width: 115px;
  height: auto;
  margin-bottom: 0.2rem;
}

/* Headline - smaller */
.signup-headline {
  font-family: "Spartan", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 0.4rem !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

/* Description text */
#forgot-password-email-text {
  font-size: 0.72rem;
  color: #777;
  text-align: left;
  margin-bottom: 1.2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Input fields - more compact */
.signup-input {
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 1.32rem 0.55rem;
  font-size: 0.78rem;
  height: 32px;
  max-width: 90%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.signup-input:focus {
  outline: none;
  border-color: #007B5E;
  box-shadow: 0 0 0 2px rgba(0, 123, 94, 0.1);
}

/* Form spacing - reduced */
.mb-3 {
  margin-bottom: 1.1rem !important;
  position: relative;
  padding-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 0.3rem !important;
}

.mt-4 {
  margin-top: 0.3rem !important;
}

/* Specific spacing for d-grid containers */
.d-grid.mb-4 {
  margin-bottom: 0.3rem !important;
}

/* Buttons - consistent with login */
.btn-signup {
  background: linear-gradient(135deg, #ff1744 0%, #f50057 50%, #c51162 100%);
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  min-width: 120px;
  max-width: 160px;
  width: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(245, 0, 87, 0.35);
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-signup:hover::before {
  left: 100%;
}

.btn-signup:hover {
  color: white;
  background: linear-gradient(135deg, #f50057 0%, #c51162 50%, #ad1457 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(245, 0, 87, 0.4);
}

/* Alert styling */
.alert {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* Text - smaller */
.text-muted,
.link-login {
  font-size: 0.72rem;
}

.text-center.mt-4 {
  margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.link-login {
  color: #007B5E;
  text-decoration: none;
}

.link-login:hover {
  text-decoration: underline;
}

/* Feedback text - smaller and fixed height */
.invalid-feedback {
  font-size: 0.65rem;
  line-height: 1;
  margin-top: 0.15rem;
  min-height: 0;
  position: absolute;
  z-index: 5;
  white-space: normal;
  max-width: 90%;
  left: 5%;
}

/* Add bottom margin to inputs to accommodate error messages */
.mb-3 {
  margin-bottom: 1.1rem !important;
  position: relative;
  padding-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .signup-card {
    flex-direction: column;
    border-radius: 16px;
    max-height: none;
  }
  
  .signup-form-col > .p-4 {
    padding: 1rem !important;
  }
  
  .signup-headline {
    font-size: 1.25rem;
  }
  
  /* Hide or minimize image on mobile */
  .signup-form-col:last-child img {
    max-width: 70% !important;
    margin-top: 20px !important;
  }
}

@media (max-width: 768px) {
  .signup-wrapper {
    padding: 0.5rem;
  }
  
  .signup-input {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .btn-signup {
    min-width: 110px;
    max-width: 140px;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
  }
  
  #forgot-password-email-text,
  .alert {
    max-width: 100%;
  }
}

/* Ensure no scrollbar on body */
body {
  overflow-x: hidden;
}

.main {
  overflow-x: hidden;
}