.pe-login-page {
  min-height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.pe-login-header {
  padding: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .pe-login-header {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.pe-login-logo {
  max-height: 45px;
  width: auto;
}

.pe-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: 1rem;
}

.pe-login-card,
.login_card_pe {
  width: 100%;
  max-width: 60rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .pe-login-card {
    grid-template-columns: 1fr 1fr;
  }
}

.pe-login-panel-left {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #5D3D68 0%, #7B5A8A 100%);
}

@media (min-width: 992px) {
  .pe-login-panel-left {
    display: flex;
  }
}

.pe-login-panel-left svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pe-login-panel-content {
  position: relative;
  z-index: 10;
}

.pe-login-welcome-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
}

.pe-login-welcome-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.625;
}

.pe-login-features {
  margin-top: 1.5rem;
}

.pe-login-feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.pe-login-feature-item:last-child {
  margin-bottom: 0;
}

.pe-login-feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-login-feature-icon i {
  font-size: 0.75rem;
  color: #fff;
}

.pe-login-feature-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.pe-login-panel-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem 2.5rem;
}

@media (min-width: 640px) {
  .pe-login-panel-right {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 992px) {
  .pe-login-panel-right {
    padding-left: 3.5rem;
  }
}

.pe-login-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .pe-login-mobile-logo {
    display: none;
  }
}

.pe-login-mobile-logo img {
  max-height: 55px;
  width: auto;
}

.pe-login-cta-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .pe-login-cta-wrapper {
    text-align: left;
  }
}

.pe-login-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem !important;
}

.pe-login-cta-desc {
  font-size: 0.875rem;
  color: #6b7280;
}

.pe-login-btn {
  display: block;
  width: 100%;
  height: 3rem;
  background-color: #5D3D68;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  text-decoration: none;
  text-align: center;
  line-height: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease;
}

.pe-login-btn:hover {
  background-color: #4a3053;
  color: #fff;
}

.pe-login-terms {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .pe-login-terms {
    text-align: left;
  }
}

.pe-login-footer {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

@media (min-width: 640px) {
  .pe-login-footer {
    flex-direction: row;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.pe-login-footer-links {
  display: flex;
  gap: 1rem;
}

.pe-login-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pe-login-footer-links a:hover {
  color: #4b5563;
}

/* ===== Set Password Page (B2C, TEST_URL, DIST_URL) ===== */

.pe-setpassword-page {
  min-height: 100vh;
  background-color: #F3EDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pe-setpassword-panel-left {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #5D3D68 0%, #7B5A8A 100%);
}

@media (min-width: 992px) {
  .pe-setpassword-panel-left {
    display: flex;
  }
}

.pe-setpassword-panel-left svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pe-setpassword-logo-left {
  position: relative;
  z-index: 10;
}

.pe-setpassword-logo-left img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.pe-setpassword-panel-content {
  position: relative;
  z-index: 10;
}

.pe-setpassword-welcome-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
}

.pe-setpassword-welcome-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.625;
}

.pe-setpassword-features {
  margin-top: 1.5rem;
}

.pe-setpassword-feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.pe-setpassword-feature-item:last-child {
  margin-bottom: 0;
}

.pe-setpassword-feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-setpassword-feature-icon i {
  font-size: 0.75rem;
  color: #fff;
}

.pe-setpassword-feature-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.pe-setpassword-copyright {
  position: relative;
  z-index: 10;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.pe-setpassword-panel-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem 2.5rem;
}

@media (min-width: 640px) {
  .pe-setpassword-panel-right {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 992px) {
  .pe-setpassword-panel-right {
    padding-left: 3.5rem;
  }
}

.pe-setpassword-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .pe-setpassword-mobile-logo {
    display: none;
  }
}

.pe-setpassword-mobile-logo img {
  max-height: 55px;
  width: auto;
}

.pe-setpassword-form-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.pe-setpassword-form-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.pe-setpassword-form-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .pe-setpassword-form-wrapper {
    text-align: left;
  }
}

.pe-setpassword-field {
  margin-bottom: 1.25rem;
}

.pe-setpassword-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.pe-setpassword-input-wrap {
  display: flex;
  align-items: center;
  height: 2.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.pe-setpassword-input-wrap:focus-within {
  border-color: #5D3D68;
  box-shadow: 0 0 0 3px rgba(93, 61, 104, 0.2);
}

.pe-setpassword-input-wrap.pe-setpassword-input-error-wrap {
  border-color: #f87171;
}

.pe-setpassword-input-wrap.pe-setpassword-input-error-wrap:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.pe-setpassword-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.75rem 0 0.75rem;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  box-sizing: border-box;
}

.pe-setpassword-input:focus {
  outline: none;
}

.pe-setpassword-toggle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
}

.pe-setpassword-toggle:hover {
  color: #374151;
}

.pe-setpassword-toggle:focus {
  outline: none;
}

.pe-setpassword-toggle i {
  font-size: 0.875rem;
  line-height: 1;
}

.pe-setpassword-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.pe-validation-errors {
  margin-bottom: 1rem;
}

.pe-validation-error-item {
  display: block;
  font-size: 0.75rem;
  color: #ef4444;
  margin-bottom: 0.25rem;
}

.pe-validation-error-item:last-child {
  margin-bottom: 0;
}

.pe-setpassword-btn {
  display: block;
  width: 100%;
  height: 2.75rem;
  background-color: #5D3D68;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 2.75rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pe-setpassword-btn:hover:not(:disabled) {
  background-color: #4a3053;
}

.pe-setpassword-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pe-setpassword-btn .pe-btn-loader .fa-spinner {
  margin-right: 0.5rem;
}

.pe-setpassword-terms {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .pe-setpassword-terms {
    text-align: left;
  }
}

.login_card_pe {
  width: 100%;
  max-width: 60rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .login_card_pe {
    grid-template-columns: 1fr 1fr;
  }
}

.pe-invalid-activation-page {
  min-height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pe-invalid-panel-left {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #5D3D68 0%, #7B5A8A 100%);
}

@media (min-width: 992px) {
  .pe-invalid-panel-left {
    display: flex;
  }
}

.pe-invalid-panel-left svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pe-invalid-logo-left {
  position: relative;
  z-index: 10;
}

.pe-invalid-logo-left img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.pe-invalid-panel-content {
  position: relative;
  z-index: 10;
}

.pe-invalid-welcome-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
}

.pe-invalid-welcome-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.625;
}

.pe-invalid-features {
  margin-top: 1.5rem;
}

.pe-invalid-feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.pe-invalid-feature-item:last-child {
  margin-bottom: 0;
}

.pe-invalid-feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-invalid-feature-icon i {
  font-size: 0.75rem;
  color: #fff;
}

.pe-invalid-feature-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.pe-invalid-copyright {
  position: relative;
  z-index: 10;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.pe-invalid-panel-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem 2.5rem;
}

@media (min-width: 640px) {
  .pe-invalid-panel-right {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 992px) {
  .pe-invalid-panel-right {
    padding-left: 3.5rem;
  }
}

.pe-invalid-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .pe-invalid-mobile-logo {
    display: none;
  }
}

.pe-invalid-mobile-logo img {
  max-height: 55px;
  width: auto;
}

.pe-invalid-content-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .pe-invalid-content-wrapper {
    text-align: left;
  }
}

.pe-invalid-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
  .pe-invalid-icon-wrap {
    justify-content: flex-start;
  }
}

.pe-invalid-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #fffbeb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-invalid-icon-circle i {
  font-size: 1.75rem;
  color: #f59e0b;
}

.pe-invalid-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.pe-invalid-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.pe-invalid-btn {
  display: block;
  width: 100%;
  height: 3rem;
  background-color: #5D3D68;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  text-decoration: none;
  text-align: center;
  line-height: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease;
}

.pe-invalid-btn:hover {
  background-color: #4a3053;
  color: #fff;
}

.pe-invalid-helper {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1.5rem;
}

@media (min-width: 992px) {
  .pe-invalid-helper {
    text-align: left;
  }
}
