* {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}
.container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  width: 900px;
  max-width: 100%;
  min-height: 600px;
  overflow: hidden;
  display: flex;
}
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 50px;
  text-align: center;
}
.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}
.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}
.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
}
.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
}
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}
.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}
.overlay {
  background: linear-gradient(to right, #2c3e50, #1a242f);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}
.container.right-panel-active .overlay {
  transform: translateX(50%);
}
.overlay-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  padding: 0 40px;
  transition: transform 0.6s ease-in-out;
}
.overlay-left {
  transform: translateX(-20%);
  left: 0;
}
.container.right-panel-active .overlay-left {
  transform: translateX(0);
}
.overlay-right {
  right: 0;
  transform: translateX(0);
}
.container.right-panel-active .overlay-right {
  transform: translateX(20%);
}
form {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  align-items: center;
}
input {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  border-radius: 5px;
  font-size: 1em;
}
button {
  border-radius: 20px;
  border: 1px solid #2c3e50;
  background-color: #2c3e50;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
}
button:hover {
  background-color: #1a242f;
}
button.ghost {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}
#password-strength-bar {
  width: 100%;
  height: 5px;
  background: #ddd;
  margin: 10px 0;
  border-radius: 3px;
  overflow: hidden;
}
#strength-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #ccc;
  transition: width 0.3s;
}
#password-strength-text {
  font-size: 12px;
  margin-bottom: 5px;
}
#password-match-message {
  font-size: 12px;
  font-weight: bold;
  margin-top: 5px;
}
#toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #d9534f;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9999;
}
#toast.show {
  opacity: 1;
  pointer-events: auto;
}
.toast-actions {
  margin-top: 10px;
  text-align: right;
}
.toast-actions button {
  background: rgba(255, 255, 255, 0.9);
  color: #d9534f;
  border: none;
  margin-left: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
/* ✅ Responsive Design für Mobilgeräte */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    width: 95%;
    height: auto;
    box-shadow: none;
  }
  .form-container, .sign-in-container, .sign-up-container {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
    z-index: 2 !important;
  }
  .overlay-container {
    display: none;
  }
  form {
    padding: 20px 10px;
  }
  button {
    width: 100%;
    padding: 12px 20px;
  }
  input {
    font-size: 1em;
  }
  h2 {
    font-size: 1.4em;
  }
  .container.right-panel-active .sign-in-container, .container.right-panel-active .sign-up-container {
    transform: none;
  }
}
