/**
 * Alhadil Beauty - Authentication Pages Styles (Login/Register)
 */

/* Auth Section */
.auth-section {
  padding: 70px 0;
  position: relative;
}

/* RTL Support */
.auth-section.rtl {
  direction: rtl;
  text-align: right;
}

.auth-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  color: var(--text-color-light);
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Form Styling */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  color: var(--text-color-light);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group {
  display: flex;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  color: var(--secondary-color);
}

.input-group .form-control {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background-color: transparent;
  color: var(--text-color-light);
}

/* LTR input for email, phone, numbers in RTL mode */
.ltr-input {
  direction: ltr !important;
  text-align: left !important;
}

.rtl .ltr-input::placeholder {
  direction: rtl;
  text-align: right;
}

.input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-group .form-control:focus {
  outline: none;
  box-shadow: none;
}

.password-toggle {
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: var(--text-color-light);
}

/* Form Row Styles */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.rtl-form-row {
  flex-direction: row-reverse;
}

/* Basic Checkbox Styles */
.form-check {
  display: flex;
  align-items: center;
  margin: 0; /* Remove default margins */
}



.form-check-input {
  margin-right: 15px;
  margin-top: 0 !important; /* Remove top margin */
  margin-bottom: 0 !important; /* Remove bottom margin */
}

.rtl .form-check-input {
  margin-right: 0 !important;
  margin-left: 15px !important;
  margin-top: 0 !important; /* Remove top margin in RTL */
  margin-bottom: 0 !important; /* Remove bottom margin in RTL */
}

.form-check-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0 !important; /* Remove bottom margin from checkbox labels */
}

.text-right {
  text-align: right;
}

.forgot-link {
  color: var(--secondary-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  color: #c07385;
  text-decoration: underline;
}

/* Button Styles */
.btn-block {
  width: 100%;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: var(--secondary-color) !important;
  color: var(--text-color-light) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 15px 25px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  background-color: #c07385 !important;
  color: var(--text-color-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color-light);
}

.btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-color-light);
}

/* Social Login */
.social-login {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-login p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-color-light);
  font-size: 1.2rem;
}

.social-button.google {
  background-color: #db4437;
}

.social-button.facebook {
  background-color: #4267b2;
}

.social-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 25px;
}

.auth-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.auth-footer a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: #c07385;
  text-decoration: underline;
}

/* Alert Styling */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 0.95rem;
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

/* Additional Styles for Register Form */
.terms-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.terms-text a {
  color: var(--secondary-color);
}

.terms-text a:hover {
  text-decoration: underline;
}

.required {
  color: #f44336;
}

/* Form validation styles */
.is-invalid {
  border-color: #f44336 !important;
}

.invalid-feedback {
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

/* Make sure text-danger is applied to form help text */
.form-text.text-danger {
  color: #f44336 !important;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Password strength indicator */
.password-strength {
  margin-top: 10px;
  height: 5px;
  border-radius: 5px;
  background-color: #ddd;
  position: relative;
  overflow: hidden;
}

.password-strength-meter {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
  width: 33%;
  background-color: #f44336;
}

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

.strength-strong {
  width: 100%;
  background-color: #4caf50;
}

.strength-text {
  font-size: 0.8rem;
  margin-top: 5px;
  transition: all 0.3s ease;
}

/* Override all form styles to match newsletter form */
.form-control,
.input-group .form-control,
.auth-card .form-control,
.auth-form .form-control {
  padding: 15px 20px !important;
  border: none !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-color-light) !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
}

/* Adjust padding for inputs with icons */
.input-group .form-control {
  padding-left: 50px !important;
}

.rtl .input-group .form-control {
  padding-left: 20px !important;
  padding-right: 50px !important;
}

.form-control:focus,
.input-group .form-control:focus,
.auth-card .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.form-control::placeholder,
.input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Override input group styles */
.input-group {
  display: flex !important;
  border-radius: 0 !important;
  overflow: visible !important;
  border: none !important;
  background-color: transparent !important;
  position: relative !important;
}

.input-group-text {
  position: absolute !important;
  top: 50% !important;
  left: 15px !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--secondary-color) !important;
}

.rtl .input-group-text {
  left: auto !important;
  right: 15px !important;
}

.input-group-text.password-toggle,
.input-group-text.btn-password-toggle {
  left: auto !important;
  right: 15px !important;
  cursor: pointer !important;
  padding: 0 15px !important;
}

.rtl .input-group-text.password-toggle,
.rtl .input-group-text.btn-password-toggle {
  right: auto !important;
  left: 15px !important;
}

/* Newsletter form styling in auth pages */
.newsletter-form input {
  border-radius: 0 !important;
}

.newsletter-form .btn-subscribe {
  border-radius: 0 !important;
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .auth-card {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .auth-section {
    padding: 50px 0;
  }

  .auth-header h2 {
    font-size: 1.8rem;
  }

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

  .rtl-form-row {
    flex-direction: column;
    align-items: flex-end;
  }

  .forgot-link {
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  .auth-card {
    padding: 25px;
  }

  .auth-header h2 {
    font-size: 1.6rem;
  }

  .social-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
