/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Auth container */
.auth-container {
  max-width: 500px;
  width: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Auth header */
.auth-header {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  padding: 30px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.logo i {
  font-size: 2.5rem;
  margin-right: 15px;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
}

.auth-header h2 {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #4caf50;
  border-bottom: 3px solid #4caf50;
}

/* Auth forms */
.auth-form {
  padding: 30px;
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4caf50;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
}

/* Password strength indicator */
.password-strength {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  flex: 1;
  background: #eee;
  margin-right: 5px;
  border-radius: 2px;
}

.strength-bar:last-child {
  margin-right: 0;
}

.strength-text {
  font-size: 0.8rem;
  color: #777;
  margin-left: 10px;
}

/* Terms checkbox */
.terms {
  display: flex;
  align-items: center;
}

.terms input {
  margin-right: 8px;
}

.terms label {
  font-size: 0.9rem;
  color: #555;
}

.terms a {
  color: #4caf50;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #4caf50;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Buttons */
.auth-btn {
  width: 100%;
  padding: 12px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 20px;
}

.auth-btn:hover {
  background-color: #3d8b40;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.divider span {
  display: inline-block;
  padding: 0 10px;
  background: white;
  color: #777;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
  z-index: 0;
}

/* Social login buttons */
.social-login {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-login i {
  margin-right: 10px;
}
