/***** Login form css *****/


.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%;
}

/* 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[type="password"] {
  padding-right: 28px;
}

.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;
}

/* Remove border from last input before buttons */
.mb-3:last-of-type {
  border-bottom: none;
}

.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;
}

.d-grid.gap-2 {
  gap: 0 !important;
}

.d-grid.mt-4 {
  margin-top: 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);
}
/* Google button - compact and centered */
.btn-google {
  background-color: #fff;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.32rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  position: relative;
  margin: 0 auto !important;
}

.btn-google:hover {
  background-color: #f7f7f7;
  border-color: #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.btn-google:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

.google-icon {
  width: 15px;
  height: 15px;
  margin-right: 0.35rem;
  margin-left: 0;
  flex-shrink: 0;
}

.google-text {
  display: inline-block;
  color: #444;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Divider - compact */
.divider-or {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: #777;
  margin: 1.5rem 0 0.4rem 0;
  gap: 0.5rem;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}

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

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

.text-center.mb-3 {
  margin-bottom: 1rem !important;
}

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

.link-forgot {
  color: red;
  text-decoration: none;
}

.link-forgot:hover{
    color: red;
    text-decoration: underline;
}

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

.text-end.mb-1 {
  margin-bottom: 1.3rem !important;
  text-align: right !important;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -0.75rem;
}

/* Password toggle */
.position-relative {
  position: relative;
  display: flex;
  justify-content: center;
}

.password-toggle {
  position: absolute;
  right: 28px;
  top: 43%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  z-index: 10;
  font-size: 0.8rem;
  background: none;
  border: none;
  padding: 0;
}

.mb-3.position-relative .signup-input.is-invalid {
  background-image: none !important;
}

.password-toggle:hover {
  color: #333333;
}

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

.mb-3.position-relative .invalid-feedback{
  bottom: -1.0rem;
}

/* Add bottom margin to inputs to accommodate error messages */
.mb-3 {
  margin-bottom: 1.1rem !important;
  position: relative;
  padding-bottom: 0.5rem;
}
@media (min-width: 769px) and (max-width: 991.98px) {
  .password-toggle {
    right: 50px;
    top: 40%;
  }
}

/* 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;
  }
  
  .google-icon {
    margin-left: 0;
  }
  
  .password-toggle {
    right: 15px;
  }
}

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

.main {
  overflow-x: hidden;
}

/* Google button container centered */
.d-grid.mt-4 {
  display: flex !important;
  justify-content: center;
  margin-top: 0.8rem !important;
}