/* Login & Register Page Styles */

.auth-container {
  margin: 2rem 0;
}

/* Auth Tabs */
.auth-tabs {
  border: none;
  justify-content: center;
  background: transparent;
}

.auth-tabs .nav-link {
  border: none;
  border-radius: 10px 10px 0 0;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #6c757d;
  background: #f8f9fa;
  margin: 0 5px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.auth-tabs .nav-link:hover {
  color: #667eea;
  background: #e9ecef;
}

.auth-tabs .nav-link.active {
  color: #667eea;
  background: #ffffff;
  border-bottom: 3px solid #667eea;
  box-shadow: 0 -2px 10px rgba(102, 126, 234, 0.1);
}

/* Auth Card */
.auth-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.auth-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  text-align: center;
  color: #ffffff;
}

.auth-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.auth-card-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  color: #ffffff;
}

.auth-card-body {
  padding: 2.5rem;
}

/* Form Styles */
.auth-form .form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.auth-input {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.auth-input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0px 0px 0px 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.auth-input.is-invalid {
  border-color: #dc3545;
}

.auth-input.is-valid {
  border-color: #28a745;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #667eea;
}

.password-toggle:focus {
  outline: none;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
  display: none;
}

.password-strength.show {
  display: block;
}

.password-strength-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-fill.weak {
  width: 33%;
  background: #dc3545;
}

.password-strength-fill.medium {
  width: 66%;
  background: #ffc107;
}

.password-strength-fill.strong {
  width: 100%;
  background: #28a745;
}

.password-strength-text {
  font-size: 12px;
  color: #6c757d;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.form-check {
  margin: 0;
}

.form-check-input {
  margin-top: 0.3rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-label {
  cursor: pointer;
  font-size: 14px;
  color: #6c757d;
}

.forgot-password-link {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 20px rgba(102, 126, 234, 0.4);
  color: #ffffff;
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
}

/* Auth Divider */
.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  background: #ffffff;
  padding: 0 15px;
  color: #6c757d;
  font-size: 14px;
  position: relative;
}

/* Social Login Buttons */
.social-login-buttons {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-btn {
  background: #ffffff;
  color: #db4437;
  border-color: #db4437;
}

.google-btn:hover {
  background: #db4437;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0px 4px 15px rgba(219, 68, 55, 0.3);
}

.github-btn {
  background: #ffffff;
  color: #333333;
  border-color: #333333;
}

.github-btn:hover {
  background: #333333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0px 4px 15px rgba(51, 51, 51, 0.3);
}

/* Invalid Feedback */
.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.form-group:has(.is-invalid) .invalid-feedback {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-card-header {
    padding: 1.5rem;
  }

  .auth-card-title {
    font-size: 20px;
  }

  .auth-card-body {
    padding: 1.5rem;
  }

  .auth-tabs .nav-link {
    padding: 12px 20px;
    font-size: 14px;
  }

  .social-login-buttons {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .auth-card-header {
    padding: 1.25rem;
  }

  .auth-card-title {
    font-size: 18px;
  }

  .auth-card-subtitle {
    font-size: 13px;
  }

  .auth-card-body {
    padding: 1.25rem;
  }

  .auth-tabs .nav-link {
    padding: 10px 15px;
    font-size: 13px;
  }

  .auth-input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .auth-submit-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}

