/* Account layout – full copy of Angular login theme (colors, buttons, forms) */
/* Supports both LTR and RTL via logical properties (inset-inline-*, margin-inline-*, etc.) and [dir="rtl"] where needed. */
/* Angular brand and primary (#F36437) */

/* Main account layout wrapper */
.account-layout.container-fluid {
  overflow-x: hidden;
}

/* Content area padding for account pages (e.g. Manage, 2FA) – Login/LockedOut keep their own card spacing */
.account-layout .account-content-area {
  padding: 50px;
}

.account-layout,
.account-layout .lpx-theme-light,
.account-layout .lpx-theme-dark {
  --lpx-brand: #F36437;
  --bs-primary: #f36437;
  --bs-btn-bg: #f36437;
  --bs-btn-border-color: rgba(243, 100, 55, 0.8);
  --bs-btn-hover-bg: #f36437;
  --bs-btn-hover-border-color: #f36437;
  --bs-btn-active-bg: rgba(243, 100, 55, 0.8);
  --bs-btn-active-border-color: rgba(243, 100, 55, 0.8);
}
.account-layout .btn-primary {
  --bs-btn-bg: #f36437;
  --bs-btn-border-color: rgba(243, 100, 55, 0.8);
  --bs-btn-hover-bg: #f36437 !important;
  --bs-btn-hover-border-color: #f36437 !important;
  --bs-btn-active-bg: rgba(243, 100, 55, 0.8);
  --bs-btn-active-border-color: rgba(243, 100, 55, 0.8);
  --bs-btn-disabled-bg: rgba(243, 100, 55, 0.6);
  --bs-btn-disabled-border-color: #f36437;
  border-radius: 8px;
}
.account-layout .btn {
  --bs-btn-font-size: 14px;
  font-weight: normal;
}
.account-layout .btn.btn-sm {
  height: 40px;
}
.account-layout .btn-outline-secondary {
  --bs-btn-hover-bg: #f36437;
  --bs-btn-color: #f36437;
  --bs-btn-border-color: #dddddd;
  --bs-btn-hover-border-color: #dddddd;
  --bs-btn-active-border-color: #dddddd;
  --bs-btn-active-bg: #dddddd;
  border-radius: 8px;
}
.account-layout .btn-outline-primary {
  --bs-btn-color: #f36437;
  --bs-btn-border-color: #f36437;
  --bs-btn-hover-bg: #f36437;
  --bs-btn-hover-border-color: #dddddd;
  --bs-btn-active-border-color: #f36437;
  --bs-btn-active-bg: #f36437;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-color: #f36437;
  --bs-btn-disabled-border-color: #f36437;
}
.account-layout .btn-check:checked + .btn,
.account-layout :not(.btn-check) + .btn:active,
.account-layout .btn:first-child:active,
.account-layout .btn.active,
.account-layout .btn.show {
  color: var(--bs-btn-active-color);
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
  box-shadow: var(--bs-btn-active-shadow);
}
.account-layout .form-control:focus {
  border-color: #f3f4f5 !important;
  box-shadow: none !important;
}
.account-layout .form-control,
.account-layout .form-select {
  background-color: #f3f4f5 !important;
  border-color: #f3f4f5 !important;
}
.account-layout .form-control:not(textarea),
.account-layout .form-select {
  height: 40px;
}
.account-layout .account-alert-source {
  display: none;
}
.account-layout select.form-select option:checked,
.account-layout select.form-select option:focus,
.account-layout select.form-select option:active {
  background: var(--lpx-brand) !important;
  color: #fff !important;
  border-radius: 0.25rem !important;
}
.account-layout .form-control.input-validation-error,
.account-layout .form-control:invalid {
  border-color: #f3f4f5 !important;
  box-shadow: none !important;
  background-image: none !important;
}
.account-layout .form-control.is-invalid,
.account-layout .was-validated .form-control:invalid {
  border-color: #f3f4f5 !important;
  box-shadow: none !important;
  background-image: none !important;
}
.account-layout .form-check-input:checked {
  background-color: #f36437 !important;
  border-color: #f36437;
}
.account-layout .text-brand,
.account-layout a.text-brand { color: #F36437 !important; }
.account-layout a.text-brand:hover { color: #e0552a !important; }

.account-layout .lpx-login-area {
  min-height: 100vh;
  position: relative;
  background-color: var(--lpx-navbar-color, #1a1d21);
}

.account-layout .lpx-login-bg.d-none.d-md-block.w-50 {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 50%;
  min-block-size: 100vh;
  background-color: var(--lpx-navbar-color, #1a1d21);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.account-layout .lpx-login-bg-shadow {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 50%;
  min-block-size: 100vh;
  pointer-events: none;
}

.account-layout .account-logo-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.account-layout .language-selector {
  top: 50px;
  inset-inline-end: 70px;
  z-index: 1000;
}

.account-layout .language-list {
  max-height: 300px;
  overflow-y: auto;
  min-width: 200px;
  inset-inline-start: auto !important;
  inset-inline-end: 0 !important;
  margin-top: 0.5rem;
}

@media only screen and (max-width: 767px) {
  .account-layout .card .card-body {
    padding: 22px !important;
  }
}

/* Login card (same as Angular) */
.account-layout .custom-registration-title { font-weight: bold; }
.account-layout .custom-registration-subtitle { font-weight: 500; }
.account-layout .login-waving-icon { display: block; }
.account-layout .forget-password a:hover { color: #F36437; }

/* Password visibility & caps lock icons */
.account-layout .form-group.position-relative .show-pass-icon {
  position: absolute;
  top: 40px;
  inset-inline-end: 12px;
  cursor: pointer;
}
.account-layout .form-group.position-relative .caps-lock-icon {
  position: absolute;
  top: 40px;
  inset-inline-end: 40px;
}
.account-layout #password-input {
  padding-inline-end: 72px;
}
.account-layout .form-group label,
.account-layout .form-floating label { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.account-layout .login-card { will-change: opacity; }
.account-layout .invalid-feedback {
  color: #dd331d !important;
  background-color: #fcebe9;
  width: 100%;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 5px;
  font-size: 14px;
}
.account-layout .field-validation-valid {
  display: none !important;
}
.account-layout .form-control ~ .field-validation-error,
.account-layout ng-select ~ .field-validation-error,
.account-layout .input-group ~ .field-validation-error,
.account-layout .form-control ~ abp-validation-error .field-validation-error,
.account-layout abp-validation-error .field-validation-error {
  color: #dd331d !important;
  background-color: #fcebe9;
  width: 100%;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 5px;
  font-size: 14px;
}
.account-layout .form-control ~ .field-validation-error ~ .field-validation-error {
  display: none !important;
}
.account-layout .login-submit-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Announcements (same as Angular) */
.account-layout .auth-announcements-wrapper .announcements-wrapper {
  position: relative;
}
.account-layout .auth-announcements-wrapper .announcements-wrapper::before {
  content: "";
  position: absolute;
  inset-block-start: -24px;
  inset-inline-start: 18px;
  inline-size: 353px;
  block-size: 353px;
  background: rgb(237 69 17 / 38%);
  border-radius: 50%;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  filter: blur(150px);
  box-shadow: 0 0 50px rgba(237, 69, 17, 0.3);
}
.account-layout .auth-announcements-wrapper .carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 737px;
  height: 206px;
  margin: 0 auto;
  border-radius: 10px;
  backdrop-filter: blur(100px);
}
.account-layout .auth-announcements-wrapper .carousel-slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  position: relative;
  height: 210px;
}
.account-layout .auth-announcements-wrapper .carousel-slide {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 100%;
  inline-size: 100%;
  block-size: 100%;
  padding: 30px;
}
.account-layout .auth-announcements-wrapper .carousel-slide.active {
  inset-inline-start: 0;
  opacity: 1;
}
.account-layout .auth-announcements-wrapper .carousel-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  width: 100%;
}
.account-layout .auth-announcements-wrapper .carousel-description {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  overflow: hidden;
  display: -webkit-box;
  width: 100%;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.account-layout .auth-announcements-wrapper .carousel-dots {
  margin: 20px 0 0;
  margin-inline-start: 45px;
}
.account-layout .auth-announcements-wrapper .dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #f36437;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  opacity: 0.3;
}
.account-layout .auth-announcements-wrapper .dot.active-dot {
  opacity: 1;
}

.account-layout .lpx-login-bg-shadow {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 50%;
  min-block-size: 100vh;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

[dir="rtl"] .account-layout .lpx-login-bg-shadow {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

/* Toaster (same UX as Angular app) – appears from start (left in LTR, right in RTL) */
.account-layout .account-login-toast-holder {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  inset-inline-end: auto;
  z-index: 9999;
  pointer-events: none;
}
.account-layout .account-login-toast-holder .abp-toast {
  pointer-events: auto;
}
.account-layout .abp-toast {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  border: 0;
  padding: 0 20px;
  min-height: 60px;
  margin: 8px 0;
  transition: opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.account-layout .abp-toast-close-button {
  position: absolute;
  inset-inline-end: 5px;
  inset-inline-start: auto;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  background: transparent;
  border: 0;
  opacity: 0.7;
  cursor: pointer;
}
.account-layout .abp-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 12px;
  flex-shrink: 0;
}
.account-layout .abp-toast-icon i {
  font-size: 1.25rem;
}
.account-layout .abp-toast-message {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding: 15px 0;
  padding-inline-end: 24px;
  flex: 1;
  color: #325168;
}
.account-layout .abp-toast-error {
  background-color: #fde7e5;
  border-inline-start: 4px solid #ab2816;
}
.account-layout .abp-toast-error .abp-toast-message {
  color:  #325168;
}
.account-layout .abp-toast-error .abp-toast-icon i {
  color: #ab2816;
}
.account-layout .abp-toast-error .abp-toast-close-button {
  color: #ab2816;
}
.account-layout .abp-toast-warning {
  background-color: #fff6e0;
  border-inline-start: 4px solid #f36437;
}
.account-layout .abp-toast-warning .abp-toast-message {
  color: #325168 !important;
}
.account-layout .abp-toast-warning .abp-toast-icon i {
  color: #f36437;
}
.account-layout .abp-toast-warning .abp-toast-close-button {
  color: #f36437;
}
/* Toast animation: LTR slides from left */
[dir="ltr"] .account-layout .abp-toast {
  animation: account-toast-in-ltr 0.3s ease-out;
}
@keyframes account-toast-in-ltr {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Toast animation: RTL slides from right */
[dir="rtl"] .account-layout .abp-toast {
  animation: account-toast-in-rtl 0.3s ease-out;
}
@keyframes account-toast-in-rtl {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Fallback when dir is not set (default LTR) */
.account-layout .abp-toast {
  animation: account-toast-in-ltr 0.3s ease-out;
}