/* Auth Pages Styles */
.auth-section {
  min-height: calc(100vh - 80px - 350px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.auth-container {
  width: 100%;
  max-width: 600px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.auth-header span {
  color: #4caf50;
}

.auth-header p {
  color: #666;
}

/* User Type Selection */
.user-type-selection {
  margin-bottom: 30px;
}

.user-type-selection h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.user-type-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.user-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 100px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-type-btn i {
  font-size: 2rem;
  color: #666;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.user-type-btn span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.user-type-btn:hover {
  border-color: #4caf50;
}

.user-type-btn:hover i,
.user-type-btn:hover span {
  color: #4caf50;
}

.user-type-btn.active {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.user-type-btn.active i,
.user-type-btn.active span {
  color: #4caf50;
}

/* Form Styles */
.auth-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.form-group.half {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.input-with-icon .toggle-password {
  left: auto;
  right: 15px;
  cursor: pointer;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-with-icon input:focus {
  border-color: #4caf50;
  outline: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.select-wrapper select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  appearance: none;
  background-color: white;
  transition: border-color 0.3s ease;
}

.select-wrapper select:focus {
  border-color: #4caf50;
  outline: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.remember-me label {
  font-size: 0.9rem;
  color: #666;
}

.remember-me label a {
  color: #4caf50;
  text-decoration: none;
}

.forgot-password {
  font-size: 0.9rem;
  color: #4caf50;
  text-decoration: none;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-btn:hover {
  background-color: #45a049;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ddd;
}

.auth-divider span {
  position: relative;
  background-color: white;
  padding: 0 15px;
  color: #666;
  font-size: 0.9rem;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.social-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.social-btn.google i {
  color: #db4437;
}

.social-btn.facebook i {
  color: #4267b2;
}

.social-btn:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.auth-footer {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.auth-footer a {
  color: #4caf50;
  text-decoration: none;
  font-weight: 500;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .auth-container {
    padding: 30px 20px;
  }

  .auth-header h2 {
    font-size: 1.8rem;
  }

  .user-type-btn {
    width: 100px;
    height: 90px;
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

@media screen and (max-width: 480px) {
  .auth-container {
    padding: 25px 15px;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .user-type-buttons {
    flex-direction: column;
    align-items: center;
  }

  .user-type-btn {
    width: 100%;
    max-width: 200px;
    height: 80px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 20px;
  }

  .user-type-btn i {
    margin-bottom: 0;
    margin-right: 15px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
