/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Bricolage Grotesque" !important;
  background: linear-gradient(135deg, #0d1f18 0%, #1a332a 100%);
  /* Gradient background */
  min-height: 100vh;
  /* Allow scrolling if content exceeds viewport */
  position: relative;
  margin: 0;
}

.logo img {
  width: 120px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.login-container {
  width: 90%;
  max-width: 600px;
  padding: 20px;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.glass-effect {
  background: rgba(18, 31, 27, 0.85);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgb(0 0 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  width: 100%;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

h1 {
  font-size: 2rem;
  color: #f0f0f0 !important;
}

p {
  font-size: 1.2rem;
  color: #c0c0c0;
  margin-bottom: 20px;
}

h3 {
  font-size: 16px;
  color: #c0c0c0;
  margin-top: -5px;
  font-weight: 300;
}

.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #e0e0e0;
  font-weight: 500;
  text-align: start;
  transition: all 0.3s ease;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #2c3e50;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-group input:focus {
  border-color: #3ab795;
  box-shadow: 0 0 0 3px rgba(58, 183, 149, 0.2);
  background: #fff;
}

.input-group input::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

/* Input with icon container */
.input-with-icon {
    position: relative;
    width: 100%;
}

/* Input icon styling */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Adjust input padding to make space for icon */
.input-with-icon input {
    padding-left: 45px !important;
    padding-right: 45px !important; /* For password field */
}

/* Password toggle icon */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #3ab795;
}

/* Focus effects for icons */
.input-with-icon input:focus ~ .input-icon,
.input-with-icon input:focus ~ .password-toggle {
    color: #3ab795;
}

/* Error message styling */
.text-danger {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #ff6b6b;
  font-weight: 500;
  text-align: left;
}

/* Password toggle icon */
#togglePassword {
  color: #a0aec0;
  transition: all 0.3s ease;
}

#togglePassword:hover {
  color: #3ab795;
}

label {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 10px;
  display: block;
}

.submit-button {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 16px;
    font-weight: 500;
    background: #3ab795;
    border: 2px solid #2fa081;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(58, 183, 149, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #34a786;
    border-color: #2a8f74;
    box-shadow: 0 0 0 3px rgba(58, 183, 149, 0.4);
    transform: translateY(-1px);
}

.submit-button:active {
    background: #2e9b7d;
    transform: translateY(0);
}

.submit-button:focus {
    box-shadow: 0 0 0 3px rgba(58, 183, 149, 0.5);
}

.button-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-block {
  width: 100%;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 3px solid rgb(132 132 132 / 49%);
  border-radius: 20px;
  background: #ffffff;
  color: #2c3e50;
  outline: none;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #7baeff;
}

.btn {
  background: linear-gradient(135deg, #5f8bff, #3b6fe1);
  /* Darker gradient for the background */
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5379d9, #3a64b2);
  /* Even darker gradient on hover */
}

.forgot-link {
  margin-bottom: 15px;
  margin-top: -10px;
  font-size: 0.9rem;
  color: #3ab795;
  text-decoration: none;
  text-align: right;
  display: flex;
  width: fit-content;
  margin-left: auto;
}

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

.signup {
  display: block;
  margin-top: 25px;
  ;
  text-decoration: none;
  text-align: center;
}

.extras {
  margin-top: 20px;
  text-align: center;
  /* Center-aligns the text */
}

.extras p {
  margin-top: 10px;
  /* Adds space above the "Don't have an account?" text */
  color: #2c3e50;
  font-size: 0.9rem;
}

/* Sign up as a button */
.signup-link {
  display: inline-block;
  background: #ffffff;
  /* White background */
  color: #2c3e50;
  /* Dark text color for contrast */
  border: 2px solid #ccc;
  /* Gray border */
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  margin-top: 0;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.signup-link:hover {
  transform: translateY(-2px);
  background: #f5f5f5;
  /* Light gray background on hover */
  border-color: #7baeff;
  /* Change border color on hover */
}

.signup-link:focus {
  outline: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .btn {
    font-size: 0.9rem;
  }

  input {
    font-size: 0.9rem;
    padding: 10px;
  }

  .forgot-link {
    font-size: 0.8rem;
  }

  .signup-link {
    font-size: 0.9rem;
  }
}


/* Modal container */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* Slightly darker background for a modern look */
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  /* Centered with vertical margin */
  padding: 20px 30px;
  border-radius: 15px;
  width: 90%;
  /* Full width on smaller screens */
  max-width: 400px;
  /* Maximum width for larger screens */
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Add a subtle shadow */
  animation: slideIn 0.3s ease-in-out;
}

/* Close button */
.close-btn {
  color: #555;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #000;
}

/* Header style */
.modal-content h2 {
  color: #333;
  font-size: 1.5em;
  margin-bottom: 15px;
}

/* Contact details */
.contact-details p {
  margin: 10px 0;
  color: #555;
  font-size: 1em;
}

.contact-details a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Close button at bottom */
.modal-close-button {
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.modal-close-button:hover {
  background-color: #0056b3;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
  }

  to {
    transform: translateY(0);
  }
}

/*REGISTER*/
.name-section {
    display: flex;
    gap: 15px;
}

.half-width {
    flex: 1;
}

select {
    width: 100%;
    padding: 16px 20px;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f0f0f0;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0' width='18px' height='18px'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

select:focus {
    border-color: #3ab795;
    box-shadow: 0 0 0 3px rgba(58, 183, 149, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

select option {
    background: #121f1b;
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .name-section {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        width: 100%;
    }
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}
        
.form-step.active {
    display: block;
}
        
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
        
.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(58, 183, 149, 0.2);
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    position: relative;
    font-weight: bold;
}
        
.progress-step.active {
    background-color: #3ab795;
}
        
.progress-step.completed {
    background-color: #2fa081;
}
        
.progress-step:not(:last-child):after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: rgba(58, 183, 149, 0.2);
    right: -20px;
}
        
.progress-step.completed:after {
    background-color: #2fa081;
}
        
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
        
.next-button, .back-button {
    width: 48%;
}
        
.back-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
        
.back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.input-with-icon select {
    padding-left: 45px !important;
    background-position: right 15px center !important;
}
.input-group input, 
.input-group select {
    color: #f0f0f0 !important;
}
.input-group input:focus {
    color: #000000 !important;
    background: #ffffff !important;
}
.input-group input::placeholder {
    color: #a0aec0 !important;
    opacity: 0.7 !important;
}