:root {
  --primary-color: #084364;
  --secondary-color: #084364;
  --third-color: #61c0f5;
  --primary-linear-bg: linear-gradient(135deg, #084364, #61c0f5);
  --primary-linear-bg-0: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.1),
    rgba(162, 155, 254, 0.1)
  );
  --txt1: inherit;
}

body {
  background: url(https://www.ritehhcsvs.com/wp-content/themes/ritehome/images/bottom1_bg1.png);
  background-color: rgba(0, 0, 0, 0);
  background-size: auto;
  background-size: cover;
}

.auth-container {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-linear-bg);
}

.logo-container {
  margin-bottom: 2rem;
  text-align: center;
}

.logo {
  width: 50%;
  margin: auto;
}

.form-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 15px !important;
}

.form-floating > .form-control {
  border-radius: 10px;
  padding: 1rem 0.75rem;
  height: calc(3.5rem + 2px);
  border: 1px solid #e1e5e9;
  transition: all 0.3s;
}

.form-floating > .form-control:focus {
  border-color: var(--third-color);
  box-shadow: 0 0 0 0.2rem rgba(97, 192, 245, 0.25);
}

.form-floating > label {
  padding: 1rem 0.75rem;
  color: #6c757d;
}

.input-group .form-floating {
  flex: 1 1 auto;
  width: 1%;
}

.input-group .form-floating > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.password-toggle {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-left: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--primary-color);
  transition: all 0.2s;
}

.password-toggle:hover {
  background-color: #e9ecef;
}

.btn-primary {
  background: var(--primary-linear-bg);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(8, 67, 100, 0.3);
}

.auth-link {
  color: var(--third-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-switch {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
}

.form-switch .form-check-label {
  margin-left: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

/* Animation for form switching */
.form-content {
  transition: all 0.4s ease;
}

.form-content.hidden {
  display: none;
  opacity: 0;
  transform: translateX(20px);
}

.form-content.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Form switch buttons */
.form-switch-buttons {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 2rem;
}

.form-switch-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s;
}

.form-switch-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .auth-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .btn-primary {
    width: 100% !important;
  }
}

.social-login {
  margin-top: 1.5rem;
  text-align: center;
}

.social-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e1e5e9;
  background: white;
  color: #6c757d;
  transition: all 0.3s;
}

.social-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

/* Error alert styling */
.login-error-alert {
  border-radius: 10px;
  border: 1px solid #dc3545;
  background-color: #f8d7da;
}

/* Bootstrap invalid state enhancement */
.is-invalid {
  border-color: #dc3545 !important;
}

.is-invalid:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.text-danger {
  color: #dc3545 !important;
}
