* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.form-box {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 400px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.form-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tab-btn {
  background-color: transparent;
  border: none;
  font-size: 18px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: 0.3s;
  color: #555;
}

.tab-btn.active {
  color: #6c5ce7;
  border-bottom: 2px solid #6c5ce7;
}

.form-content {
  display: none;
}

.form-content.active {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
}

h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #6c5ce7;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 5px;
}

a {
  text-decoration: none;
  color: #6c5ce7;
  font-size: 12px;
}

a:hover {
  text-decoration: underline;
}

button.btn {
  width: 100%;
  padding: 14px;
  background-color: #6c5ce7;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button.btn:hover {
  background-color: #5e50d8;
}

button.google-btn {
  background-color: #4285F4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 5px;
  width: 100%;
  transition: background-color 0.3s;
}

button.google-btn:hover {
  background-color: #357AE8;
}

button.google-btn .google-icon {
  margin-right: 10px;
}

button.google-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.or-divider {
  text-align: center;
  color: #777;
  margin: 15px 0;
}

.or-divider:before,
.or-divider:after {
  content: "";
  display: inline-block;
  width: 40%;
  height: 1px;
  background-color: #ccc;
  vertical-align: middle;
}

.or-divider:before {
  margin-right: 10px;
}

.or-divider:after {
  margin-left: 10px;
}

p {
  text-align: center;
  font-size: 14px;
  color: #888;
}

p a {
  color: #6c5ce7;
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
}

.forgot-password-form {
  display: none;
  text-align: center;
}

.forgot-password-form.active {
  display: block;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  display: block;
  margin-top: 5px;
}

#success-message {
  background-color: #dff0d8;
  color: #3c763d;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
}

#back-to-login {
  margin-top: 20px;
}
