.auth-section {
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.form-side, .panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
}

.panel {
  background-color: #000;
  color: #fff;
  flex-direction: column;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
}

.form-side {
  background-color: #fff;
  color: #000;
}

.form-box {
  width: 100%;
  max-width: 400px;
}

.form-box h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.form-box p {
  font-size: 14px;
  margin-bottom: 25px;
  color: #333;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  outline: none;
  padding: 8px 30px 8px 0;
  font-size: 14px;
  color: inherit;
  transition: border-bottom-color 0.3s ease;
}

.form-group input:focus {
  border-bottom-color: #000;
}

.form-group label {
  position: absolute;
  top: 8px;
  left: 0;
  font-size: 14px;
  color: #999;
  transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -12px;
  font-size: 12px;
  color: inherit;
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  padding: 0 5px;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  margin-top: 10px;
  font-weight: bold;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-auth:hover {
  transform: scale(1.02);
  background-color: #111;
}

.btn-alt {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  margin-top: 10px;
  font-weight: bold;
  background: transparent;
  color: #000;
  border: 2px solid #000;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-alt:hover {
  background-color: #000;
  color: #fff;
}

.text-panel {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 40px;
  text-align: center;
}

@media (max-width: 768px) {
  .auth-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
    overflow-y: auto;
  }

  .panel, .form-side {
    width: 100%;
    height: auto;
    border-radius: 0;
    padding: 20px;
  }

  .form-box {
    max-width: 100%;
  }

  .btn-auth, .btn-alt {
    font-size: 16px;
    padding: 14px;
  }

  .form-box h2 {
    font-size: 22px;
  }
}