* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  width: 800px;
  max-width: 100%;
  display: flex;
  overflow: hidden;
}

.form-container {
  width: 50%;
  padding: 40px;
  transition: all 0.3s ease;
}

.form-container h2 {
  margin-bottom: 20px;
  color: #333;
}

.form-container form {
  display: flex;
  flex-direction: column;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: border 0.3s ease;
}

.form-container input:focus {
  border: 2px solid #764ba2;
  outline: none;
}

.form-container button.submit-btn {
  margin-top: 15px;
  padding: 12px;
  border: none;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-container button.submit-btn:hover {
  background: linear-gradient(to left, #667eea, #764ba2);
}

.toggle-container {
  width: 50%;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  position: relative;
}

.toggle-container h2 {
  margin-bottom: 20px;
}

.toggle-container p {
  margin-bottom: 20px;
}

.toggle-container button.switch-btn {
  padding: 8px 25px;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 5px;
}

.toggle-container button.switch-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* hide one form by default */
.form-container.signup {
  display: flex;
  flex-direction: column;
}

/*.wrapper.active .form-container.login {
  display: none;
}

.wrapper.active .form-container.signup {
  display: block;
}

/* forgot password & terms */
.forgot-password {
  color: #764ba2;
  margin-top: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: underline;
}

.accept-terms {
  margin: 10px 0 0 0;
  font-size: 0.9rem;
  user-select: none;
}

.accept-terms input[type="checkbox"] {
  margin-right: 8px;
}

.form-container,
.toggle-container {
  width: 50%;
}

.toggle-container {
  padding: 20px;
}

/* ===== Welcome Text ===== */
.welcome-text {
  font-size: 15px;
  color: #777;
  margin-bottom: 4px;
}

.system-title {
  font-size: 21px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
}

.form-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.alert {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 14px;
}

.alert-danger {
  background-color: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}
