/* BSS Phone SMS - Modern Authentication Styles */
/* BEM-like namespacing with bss-ps- prefix to avoid theme conflicts */

/* =============================================================================
   CSS Custom Properties (Design Tokens)
   ============================================================================= */
.bss-ps-auth {
  /* Colors */
  --bss-ps-primary: #4a90e2;
  --bss-ps-primary-hover: #3a7bd5;
  --bss-ps-secondary: #181818;
  --bss-ps-text: #333333;
  --bss-ps-text-muted: #666666;
  --bss-ps-text-light: #888888;
  --bss-ps-border: #e1e1e1;
  --bss-ps-border-focus: var(--bss-ps-primary);
  --bss-ps-bg: #ffffff;
  --bss-ps-bg-input: #f9f9f9;
  --bss-ps-bg-subtle: #f0f0f0;
  --bss-ps-error: #dc3545;
  --bss-ps-error-bg: #fff5f5;
  --bss-ps-success: #38a169;

  /* Spacing */
  --bss-ps-spacing-xs: 0.25rem;
  --bss-ps-spacing-sm: 0.5rem;
  --bss-ps-spacing-md: 1rem;
  --bss-ps-spacing-lg: 1.5rem;
  --bss-ps-spacing-xl: 2rem;
  --bss-ps-spacing-2xl: 3rem;

  /* Typography */
  --bss-ps-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bss-ps-font-size-sm: 0.875rem;
  --bss-ps-font-size-base: 1rem;
  --bss-ps-font-size-lg: 1.125rem;
  --bss-ps-font-size-xl: 1.5rem;
  --bss-ps-font-size-2xl: 2rem;

  /* Border Radius */
  --bss-ps-radius-sm: 6px;
  --bss-ps-radius-md: 10px;
  --bss-ps-radius-lg: 16px;
  --bss-ps-radius-xl: 20px;

  /* Shadows */
  --bss-ps-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --bss-ps-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --bss-ps-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --bss-ps-shadow-focus: 0 0 0 4px rgba(74, 144, 226, 0.15);

  /* Transitions */
  --bss-ps-transition-fast: 150ms ease;
  --bss-ps-transition-base: 200ms ease;
  --bss-ps-transition-slow: 300ms ease;
}

/* =============================================================================
   Container & Layout
   ============================================================================= */
.bss-ps-auth {
  width: 100%;
  max-width: 100%;
  margin: var(--bss-ps-spacing-lg) auto;
  padding: var(--bss-ps-spacing-lg);
  background: var(--bss-ps-bg);
  border-radius: var(--bss-ps-radius-xl);
  font-family: var(--bss-ps-font-family);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .bss-ps-auth {
    margin: var(--bss-ps-spacing-xl) auto;
    padding: var(--bss-ps-spacing-xl);
  }
}

@media (min-width: 768px) {
  .bss-ps-auth {
    max-width: 800px;
    margin: 60px auto;
    padding: var(--bss-ps-spacing-2xl);
    box-shadow: var(--bss-ps-shadow-lg);
    border: 1px solid #f5f5f5;
  }
}

@media (min-width: 992px) {
  .bss-ps-auth {
    max-width: 900px;
  }
}

/* Narrow container for single-column pages */
.bss-ps-auth--narrow {
  max-width: 100%;
}

@media (min-width: 480px) {
  .bss-ps-auth--narrow {
    max-width: 480px;
  }
}

@media (min-width: 768px) {
  .bss-ps-auth--narrow {
    max-width: 520px;
  }
}

/* =============================================================================
   Header / Page Title
   ============================================================================= */
.bss-ps-auth__header {
  margin-bottom: var(--bss-ps-spacing-xl);
  text-align: center;
}

.bss-ps-auth__title {
  font-size: var(--bss-ps-font-size-xl);
  font-weight: 700;
  color: var(--bss-ps-secondary);
  margin: 0;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .bss-ps-auth__header {
    margin-bottom: var(--bss-ps-spacing-2xl);
  }

  .bss-ps-auth__title {
    font-size: var(--bss-ps-font-size-2xl);
  }
}

/* Legacy support for existing page-title class */
.bss-ps-auth .page-title {
  margin-bottom: var(--bss-ps-spacing-xl);
  text-align: center;
  border-bottom: none;
}

.bss-ps-auth .page-title h1 {
  font-size: var(--bss-ps-font-size-xl);
  font-weight: 700;
  color: var(--bss-ps-secondary);
  margin: 0;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .bss-ps-auth .page-title {
    margin-bottom: var(--bss-ps-spacing-2xl);
  }

  .bss-ps-auth .page-title h1 {
    font-size: var(--bss-ps-font-size-2xl);
  }
}

/* =============================================================================
   Grid Layout - New 2-Column Design (Image | Form)
   ============================================================================= */
.bss-ps-auth__grid {
  display: grid;
  gap: 0;
}

/* Single column layout (no image) - centered form */
.bss-ps-auth__grid--single-col {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

/* Two-column layout with image on left */
.bss-ps-auth__grid--image-left {
  grid-template-columns: 1fr;
  min-height: 480px;
}

@media (min-width: 768px) {
  .bss-ps-auth__grid--image-left {
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
  }

  .bss-ps-auth:has(.bss-ps-auth__grid--image-left) {
    max-width: 1000px;
    padding: 0;
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .bss-ps-auth__grid--image-left {
    min-height: 600px;
  }

  .bss-ps-auth:has(.bss-ps-auth__grid--image-left) {
    max-width: 1200px;
  }
}

/* Image Section - Full height, edge-to-edge */
.bss-ps-auth__image-section {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--bss-ps-bg-subtle);
  transition: all var(--bss-ps-transition-slow) ease;
}

@media (min-width: 768px) {
  .bss-ps-auth__image-section {
    display: block;
    min-height: 100%;
    border-radius: var(--bss-ps-radius-xl) 0 0 var(--bss-ps-radius-xl);
  }
}

.bss-ps-auth__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: all var(--bss-ps-transition-slow) ease;
}

/* Content Section - Contains form and social auth */
.bss-ps-auth__content-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--bss-ps-spacing-sm);
  min-width: 0;
}

@media (min-width: 768px) {
  .bss-ps-auth__content-section {
    padding: var(--bss-ps-spacing-2xl) var(--bss-ps-spacing-xl);
  }

  .bss-ps-auth__grid--image-left .bss-ps-auth__content-section {
    padding: var(--bss-ps-spacing-2xl);
  }
}

@media (min-width: 992px) {
  .bss-ps-auth__grid--image-left .bss-ps-auth__content-section {
    padding: var(--bss-ps-spacing-2xl) 3rem;
  }
}

/* Header inside content section */
.bss-ps-auth__content-header {
  margin-bottom: var(--bss-ps-spacing-xl);
}

.bss-ps-auth__content-header h1 {
  font-size: var(--bss-ps-font-size-xl);
  font-weight: 700;
  color: var(--bss-ps-secondary);
  margin: 0 0 var(--bss-ps-spacing-sm) 0;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .bss-ps-auth__content-header h1 {
    font-size: var(--bss-ps-font-size-2xl);
  }
}

/* Subtitle (Don't have an account? Create Now) */
.bss-ps-auth__subtitle {
  font-size: var(--bss-ps-font-size-base);
  color: var(--bss-ps-text-muted);
  margin: 0;
}

.bss-ps-auth__subtitle a {
  color: var(--bss-ps-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--bss-ps-transition-base);
}

.bss-ps-auth__subtitle a:hover {
  color: var(--bss-ps-primary-hover);
  text-decoration: underline;
}

/* Remember me + Forgot password inline row */
.bss-ps-auth__remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bss-ps-spacing-md);
  flex-wrap: wrap;
}

.bss-ps-auth__remember-row .inputs.reversed {
  margin-bottom: 0;
}

.bss-ps-auth__remember-row .forgot-password {
  margin: 0;
}

.bss-ps-auth__remember-row .forgot-password a {
  color: var(--bss-ps-primary);
  font-size: var(--bss-ps-font-size-sm);
  font-weight: 500;
  text-decoration: none;
}

.bss-ps-auth__remember-row .forgot-password a:hover {
  color: var(--bss-ps-primary-hover);
  text-decoration: underline;
}

/* Social auth section inside content */

.bss-ps-auth__social-divider {
  display: flex;
  align-items: center;
  gap: var(--bss-ps-spacing-md);
  margin-bottom: var(--bss-ps-spacing-md);
}

.bss-ps-auth__social-divider::before,
.bss-ps-auth__social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bss-ps-border);
}

.bss-ps-auth__social-divider span {
  font-size: var(--bss-ps-font-size-sm);
  color: var(--bss-ps-text-muted);
  white-space: nowrap;
}

/* Legacy support - keep old classes working */
.bss-ps-auth__form-section {
  min-width: 0;
}

.bss-ps-auth__social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* Legacy: Three-column grid layout (deprecated but kept for compatibility) */
.bss-ps-auth__grid--two-col,
.bss-ps-auth__grid--three-col {
  grid-template-columns: 1fr;
}

/* Legacy: Banner Section (deprecated) */
.bss-ps-auth__banner-section {
  display: none;
}

.bss-ps-auth__banner-card {
  background: var(--bss-ps-bg);
  border-radius: var(--bss-ps-radius-lg);
  box-shadow: var(--bss-ps-shadow-md);
  padding: var(--bss-ps-spacing-md);
  overflow: hidden;
  max-width: 280px;
}

.bss-ps-auth__banner-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--bss-ps-radius-md);
  object-fit: cover;
}

/* Legacy: Vertical Divider (deprecated) */
.bss-ps-auth__divider {
  display: none;
}

/* =============================================================================
   Form Styles
   ============================================================================= */
.bss-ps-auth__form {
  display: flex;
  flex-direction: column;
}

.bss-ps-auth__fields {
  display: flex;
  flex-direction: column;
  gap: var(--bss-ps-spacing-lg);
}

/* Legacy support for form-fields class */
.bss-ps-auth .form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--bss-ps-spacing-sm);
}

/* =============================================================================
   Form Fields
   ============================================================================= */
.bss-ps-auth__field {
  display: flex;
  flex-direction: column;
  gap: var(--bss-ps-spacing-sm);
}

/* Legacy support for inputs class */
.bss-ps-auth .form-fields .inputs {
  display: flex;
  flex-direction: column;
  gap: var(--bss-ps-spacing-sm);
  margin-bottom: 0;
  text-align: center;
  position: relative;
}

/* Labels */
.bss-ps-auth__label {
  display: flex;
  align-items: center;
  gap: var(--bss-ps-spacing-xs);
  font-weight: 600;
  font-size: var(--bss-ps-font-size-sm);
  color: var(--bss-ps-text);
}

.bss-ps-auth .form-fields .inputs label {
  display: flex;
  align-items: center;
  gap: var(--bss-ps-spacing-xs);
  font-weight: 600;
  font-size: var(--bss-ps-font-size-sm);
  color: var(--bss-ps-text);
  margin-bottom: 0;
}

/* Required indicator */
.bss-ps-auth .required {
  color: var(--bss-ps-error);
  font-weight: 400;
  position: absolute;
  inset-inline-end: 15px;
}

/* Text Inputs */
.bss-ps-auth__input,
.bss-ps-auth .form-fields .inputs input[type="text"],
.bss-ps-auth .form-fields .inputs input[type="password"],
.bss-ps-auth .form-fields .inputs input[type="email"],
.bss-ps-auth .form-fields .inputs input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--bss-ps-border);
  border-radius: var(--bss-ps-radius-md);
  font-size: var(--bss-ps-font-size-base);
  font-family: inherit;
  background: var(--bss-ps-bg-input);
  color: var(--bss-ps-text);
  transition: border-color var(--bss-ps-transition-base),
  background-color var(--bss-ps-transition-base),
  box-shadow var(--bss-ps-transition-base);
  box-sizing: border-box;
  height: 50px;
}

.bss-ps_input-disabled {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--bss-ps-border);
  border-radius: var(--bss-ps-radius-md);
  font-size: var(--bss-ps-font-size-base);
  font-family: inherit;
  background: var(--bss-ps-bg-subtle);
  color: var(--bss-ps-text);
  transition: border-color var(--bss-ps-transition-base),
  background-color var(--bss-ps-transition-base),
  box-shadow var(--bss-ps-transition-base);
  box-sizing: border-box;
  height: 50px;
  cursor: not-allowed;
}

.bss-ps-auth__input:hover,
.bss-ps-auth .form-fields .inputs input:hover {
  border-color: var(--bss-ps-text-light);
}

.bss-ps-auth__input:focus,
.bss-ps-auth .form-fields .inputs input:focus {
  outline: none;
  border-color: var(--bss-ps-border-focus);
  background: var(--bss-ps-bg);
  box-shadow: var(--bss-ps-shadow-focus);
}

.bss-ps-auth__input::placeholder,
.bss-ps-auth .form-fields .inputs input::placeholder {
  color: var(--bss-ps-text-light);
}

/* Validation error state */
.bss-ps-auth .input-validation-error {
  border-color: var(--bss-ps-error) !important;
}

.bss-ps-auth .field-validation-error {
  font-size: var(--bss-ps-font-size-sm);
  color: var(--bss-ps-error);
  margin-top: var(--bss-ps-spacing-xs);
}

/* =============================================================================
   Custom Country Selector
   ============================================================================= */
.bss-ps-country-selector {
  position: relative;
  min-width: 100px;
  flex-shrink: 0;
  height: 50px;
}

/* Trigger Button (collapsed state) */
.bss-ps-country-selector__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.875rem 0.75rem;
  background: var(--bss-ps-bg-subtle);
  border: none;
  border-right: 1px solid var(--bss-ps-border);
  border-radius: calc(var(--bss-ps-radius-md) - 2px) 0 0 calc(var(--bss-ps-radius-md) - 2px);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--bss-ps-font-size-sm);
  font-weight: 600;
  color: var(--bss-ps-text);
  transition: background-color var(--bss-ps-transition-fast);
  height: 100%;
}

.bss-ps-country-selector__trigger:hover {
  background: var(--bss-ps-border);
}

.bss-ps-country-selector__trigger:focus {
  outline: none;
  background: var(--bss-ps-border);
}

/* Flag in trigger */
.bss-ps-country-selector__flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bss-ps-country-selector__flag--placeholder {
  background-color: var(--bss-ps-bg-subtle);
  border: 1px solid var(--bss-ps-border);
  background-image: none !important;
}

.bss-ps-country-selector__trigger-iso {
  font-size: 8px;
  font-weight: 700;
  color: var(--bss-ps-text-muted);
  letter-spacing: -0.5px;
}

/* Code text */
.bss-ps-country-selector__code {
  font-weight: 600;
  white-space: nowrap;
}

/* Arrow icon */
.bss-ps-country-selector__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--bss-ps-transition-base);
  color: var(--bss-ps-text-muted);
}

.bss-ps-country-selector--open .bss-ps-country-selector__arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.bss-ps-country-selector__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  min-width: 280px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bss-ps-bg);
  border: 1px solid var(--bss-ps-border);
  border-radius: var(--bss-ps-radius-md);
  box-shadow: var(--bss-ps-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--bss-ps-transition-base),
  transform var(--bss-ps-transition-base),
  visibility var(--bss-ps-transition-base);
}

.bss-ps-country-selector--open .bss-ps-country-selector__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown List */
.bss-ps-country-selector__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

/* Dropdown Items */
.bss-ps-country-selector__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color var(--bss-ps-transition-fast);
}

.bss-ps-country-selector__item:hover,
.bss-ps-country-selector__item--focused {
  background: var(--bss-ps-bg-subtle);
}

.bss-ps-country-selector__item--selected {
  background: rgba(74, 144, 226, 0.1);
}

.bss-ps-country-selector__item--selected:hover {
  background: rgba(74, 144, 226, 0.15);
}

/* Flag in dropdown item */
.bss-ps-country-selector__item-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bss-ps-country-selector__item-iso {
  font-size: 8px;
  font-weight: 700;
  color: var(--bss-ps-text-muted);
  letter-spacing: -0.5px;
}

/* Country name in dropdown */
.bss-ps-country-selector__item-name {
  flex: 1;
  color: var(--bss-ps-text);
  font-size: var(--bss-ps-font-size-sm);
}

/* Country code in dropdown */
.bss-ps-country-selector__item-code {
  color: var(--bss-ps-text-muted);
  font-size: var(--bss-ps-font-size-sm);
}

/* Loading state */
.bss-ps-country-selector__loading,
.bss-ps-country-selector__error {
  padding: 16px;
  text-align: center;
  color: var(--bss-ps-text-muted);
  font-size: var(--bss-ps-font-size-sm);
}

.bss-ps-country-selector__error {
  color: var(--bss-ps-error);
}

/* Scrollbar styling for dropdown */
.bss-ps-country-selector__dropdown::-webkit-scrollbar {
  width: 6px;
}

.bss-ps-country-selector__dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.bss-ps-country-selector__dropdown::-webkit-scrollbar-thumb {
  background: var(--bss-ps-border);
  border-radius: 3px;
}

.bss-ps-country-selector__dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--bss-ps-text-light);
}

/* =============================================================================
   Phone Input Wrapper (Country Prefix + Phone Number)
   ============================================================================= */
.bss-ps-auth__phone-input,
.bss-ps-auth .phone-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bss-ps-bg-input);
  border: 2px solid var(--bss-ps-border);
  border-radius: var(--bss-ps-radius-md);
  transition: border-color var(--bss-ps-transition-base),
  background-color var(--bss-ps-transition-base),
  box-shadow var(--bss-ps-transition-base);
  overflow: visible;
}

.bss-ps-auth__phone-input:hover,
.bss-ps-auth .phone-input-wrapper:hover {
  border-color: var(--bss-ps-text-light);
}

.bss-ps-auth__phone-input:focus-within,
.bss-ps-auth .phone-input-wrapper:focus-within {
  border-color: var(--bss-ps-border-focus);
  background: var(--bss-ps-bg);
  box-shadow: var(--bss-ps-shadow-focus);
}

/* Country Prefix Selector */
.bss-ps-auth__phone-select,
.bss-ps-auth .country-prefix-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: var(--bss-ps-bg-subtle);
  padding: 0.875rem 2rem 0.875rem 0.75rem;
  font-size: var(--bss-ps-font-size-sm);
  font-weight: 600;
  font-family: inherit;
  color: var(--bss-ps-text);
  cursor: pointer;
  outline: none;
  min-width: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border-right: 1px solid var(--bss-ps-border);
}

.bss-ps-auth__phone-select:focus,
.bss-ps-auth .country-prefix-selector:focus {
  outline: none;
}

/* Phone Number Input */
.bss-ps-auth__phone-number,
.bss-ps-auth .phone-input-wrapper input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0.875rem 1rem !important;
  font-size: var(--bss-ps-font-size-base) !important;
  font-family: inherit;
  color: var(--bss-ps-text);
  min-width: 0;
  box-shadow: none !important;
  margin: 0 !important;
}

.bss-ps-auth__phone-number:focus,
.bss-ps-auth .phone-input-wrapper input:focus {
  outline: none;
  box-shadow: none !important;
}

.bss-ps-auth__phone-number::placeholder,
.bss-ps-auth .phone-input-wrapper input::placeholder {
  color: var(--bss-ps-text-light);
}

/* =============================================================================
   Checkbox Field (Remember Me)
   ============================================================================= */
.bss-ps-auth__checkbox-field,
.bss-ps-auth .form-fields .inputs.reversed {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: max-content;
  justify-content: center;
}

.bss-ps-auth__checkbox,
.bss-ps-auth .form-fields .inputs.reversed input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--bss-ps-primary);
  cursor: pointer;
  margin: 0;
}

.bss-ps-auth__checkbox-label,
.bss-ps-auth .form-fields .inputs.reversed label {
  font-weight: 400 !important;
  cursor: pointer;
  width: min-content;
  order: 1;
}

/* =============================================================================
   Buttons
   ============================================================================= */
.bss-ps-auth__actions,
.bss-ps-auth .buttons {
  margin-top: var(--bss-ps-spacing-xl);
  margin-bottom: 0;
}

.bss-ps-auth__btn,
.bss-ps-auth .button-1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bss-ps-spacing-sm);
  width: 100%;
  padding: 1rem var(--bss-ps-spacing-xl);
  font-family: inherit;
  font-size: var(--bss-ps-font-size-base);
  font-weight: 600;
  border-radius: var(--bss-ps-radius-md);
  cursor: pointer;
  transition: background-color var(--bss-ps-transition-base),
  box-shadow var(--bss-ps-transition-base),
  transform var(--bss-ps-transition-fast);
  text-transform: none;
}

.bss-ps-auth__btn--primary,
.bss-ps-auth .button-1 {
  background: var(--bss-ps-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.bss-ps-auth__btn--primary:hover,
.bss-ps-auth .button-1:hover {
  background: var(--bss-ps-primary-hover);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
}

.bss-ps-auth__btn--primary:active,
.bss-ps-auth .button-1:active {
  transform: scale(0.98);
}

.bss-ps-auth__btn:disabled,
.bss-ps-auth .button-1:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button */
.bss-ps-auth .button-2 {
  background: none;
  border: none;
  color: var(--bss-ps-primary);
  font-weight: 600;
  font-size: var(--bss-ps-font-size-base);
  cursor: pointer;
  padding: var(--bss-ps-spacing-sm) var(--bss-ps-spacing-md);
  border-radius: var(--bss-ps-radius-sm);
  transition: background-color var(--bss-ps-transition-base);
}

.bss-ps-auth .button-2:hover {
  background: rgba(74, 144, 226, 0.1);
  text-decoration: underline;
}

/* =============================================================================
   Messages (Error/Success)
   ============================================================================= */
.bss-ps-auth__message,
.bss-ps-auth .message-error {
  display: flex;
  align-items: flex-start;
  gap: var(--bss-ps-spacing-sm);
  padding: var(--bss-ps-spacing-md);
  border-radius: var(--bss-ps-radius-md);
  margin-bottom: var(--bss-ps-spacing-lg);
  font-size: var(--bss-ps-font-size-sm);
  background: var(--bss-ps-error-bg);
  color: var(--bss-ps-error);
  border-left: 4px solid var(--bss-ps-error);
}

.bss-ps-auth .message-error:empty {
  display: none;
}

.bss-ps-auth__message--success {
  background: rgba(56, 161, 105, 0.1);
  color: var(--bss-ps-success);
  border-left-color: var(--bss-ps-success);
}

/* Inline Notification Messages (for replacing alerts) */
.bss-ps-auth .resend-message,
.bss-ps-auth .email-resend-message {
  margin-top: var(--bss-ps-spacing-md);
  padding: var(--bss-ps-spacing-md);
  border-radius: var(--bss-ps-radius-md);
  font-size: var(--bss-ps-font-size-sm);
  text-align: center;
  animation: bss-ps-fadeIn var(--bss-ps-transition-base);
}

.bss-ps-auth .resend-message.message-success,
.bss-ps-auth .email-resend-message.message-success {
  background: rgba(56, 161, 105, 0.1);
  color: var(--bss-ps-success);
  border-left: 4px solid var(--bss-ps-success);
}

.bss-ps-auth .resend-message.message-error,
.bss-ps-auth .email-resend-message.message-error {
  background: var(--bss-ps-error-bg);
  color: var(--bss-ps-error);
  border-left: 4px solid var(--bss-ps-error);
}

/* =============================================================================
   External Authentication Section
   ============================================================================= */
.bss-ps-auth__social-header {
  text-align: center;
  margin-bottom: var(--bss-ps-spacing-lg);
  width: 100%;
}

/* OR Divider (Mobile) */
.bss-ps-auth__social-or {
  display: flex;
  align-items: center;
  gap: var(--bss-ps-spacing-md);
  margin-bottom: var(--bss-ps-spacing-sm);
}

.bss-ps-auth__social-or-line {
  flex: 1;
  height: 1px;
  background: var(--bss-ps-border);
}

.bss-ps-auth__social-or-text {
  font-size: var(--bss-ps-font-size-sm);
  color: var(--bss-ps-text-light);
  text-transform: lowercase;
  font-weight: 500;
}

.bss-ps-auth__social-subtitle {
  color: var(--bss-ps-text-muted);
  font-size: var(--bss-ps-font-size-sm);
  margin: 0;
}

@media (min-width: 768px) {
  .bss-ps-auth__social-or {
    display: none;
  }

  .bss-ps-auth__social-subtitle {
    font-size: var(--bss-ps-font-size-base);
    font-weight: 500;
    color: var(--bss-ps-text);
  }
}

/* External Auth Buttons Container */
.bss-ps-auth__social-wrapper {
  margin: 50px 0 0 0 !important;
}

.bss-ps-auth__social-wrapper .title {
  display: none !important;
}

.bss-ps-auth__social-buttons,
.bss-ps-auth .external-authentication {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.bss-ps-auth .external-authentication .title {
  color: var(--bss-ps-text-muted);
  font-size: var(--bss-ps-font-size-sm);
  margin-bottom: var(--bss-ps-spacing-lg);
  display: block;
}

@media (min-width: 768px) {
  .bss-ps-auth .external-authentication .title {
    font-size: var(--bss-ps-font-size-base);
    font-weight: 500;
    color: var(--bss-ps-text);
  }
}

/* Social Auth Buttons */
.bss-ps-auth .buttons {
  display: flex;
  flex-direction: column;
  gap: var(--bss-ps-spacing-md);
  width: 100%;
}

.bss-ps-auth .external-authentication .button,
.bss-ps-auth .external-authentication button,
.bss-ps-auth .external-authentication a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bss-ps-spacing-sm);
  width: 100%;
  padding: 0.875rem var(--bss-ps-spacing-lg);
  font-size: var(--bss-ps-font-size-base);
  color: var(--bss-ps-text);
  cursor: pointer;
  text-decoration: none;
}


.bss-ps-auth .external-authentication .button:active,
.bss-ps-auth .external-authentication button:active,
.bss-ps-auth .external-authentication a:active {
  transform: scale(0.98);
}

.bss-ps-auth .external-authentication .button img,
.bss-ps-auth .external-authentication button img,
.bss-ps-auth .external-authentication a img {
  width: 20px;
  height: 20px;
}

/* =============================================================================
   Footer (Links Section)
   ============================================================================= */
.bss-ps-auth__footer,
.bss-ps-auth .customer-blocks {
  margin-top: var(--bss-ps-spacing-xl);
  padding-top: var(--bss-ps-spacing-lg);
  border-top: 1px solid var(--bss-ps-bg-subtle);
  text-align: center;
}

.bss-ps-auth .customer-blocks .title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bss-ps-spacing-xs);
  margin-bottom: 0;
  border-bottom: none;
}

.bss-ps-auth .customer-blocks .title strong {
  font-weight: 400;
  color: var(--bss-ps-text-muted);
  font-size: var(--bss-ps-font-size-base);
}

.bss-ps-auth .customer-blocks a {
  color: var(--bss-ps-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--bss-ps-transition-base);
}

.bss-ps-auth .customer-blocks a:hover {
  color: var(--bss-ps-primary-hover);
  text-decoration: underline;
}

.bss-ps-auth .forgot-password a {
  color: var(--bss-ps-primary);
  font-size: var(--bss-ps-font-size-sm);
  text-decoration: none;
  transition: color var(--bss-ps-transition-base);
}

.bss-ps-auth .forgot-password a:hover {
  color: var(--bss-ps-primary-hover);
  text-decoration: underline;
}

/* =============================================================================
   OTP Verification Page
   ============================================================================= */
.bss-ps-auth .otp-info {
  text-align: center;
  margin-bottom: var(--bss-ps-spacing-xl);
  color: var(--bss-ps-text-muted);
}

.bss-ps-auth .otp-info strong {
  display: block;
  margin-top: var(--bss-ps-spacing-xs);
  font-size: var(--bss-ps-font-size-lg);
  color: var(--bss-ps-text);
}

/* OTP Individual Boxes */
.bss-ps-auth__otp-boxes {
  display: flex;
  justify-content: center;
  gap: var(--bss-ps-spacing-sm);
}

@media (min-width: 480px) {
  .bss-ps-auth__otp-boxes {
    gap: var(--bss-ps-spacing-md);
  }
}

.bss-ps-auth__otp-box {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: var(--bss-ps-font-size-xl);
  font-weight: 700;
  border: 2px solid var(--bss-ps-border);
  border-radius: var(--bss-ps-radius-md);
  background: var(--bss-ps-bg-input);
  color: var(--bss-ps-text);
  transition: border-color var(--bss-ps-transition-base),
  background-color var(--bss-ps-transition-base),
  box-shadow var(--bss-ps-transition-base),
  transform var(--bss-ps-transition-fast);
}

@media (min-width: 480px) {
  .bss-ps-auth__otp-box {
    width: 56px;
    height: 64px;
    font-size: var(--bss-ps-font-size-2xl);
  }
}

.bss-ps-auth__otp-box:focus {
  outline: none;
  border-color: var(--bss-ps-border-focus);
  background: var(--bss-ps-bg);
  box-shadow: var(--bss-ps-shadow-focus);
  transform: scale(1.05);
}

.bss-ps-auth__otp-box--filled {
  border-color: var(--bss-ps-primary);
  background: var(--bss-ps-bg);
}

.bss-ps-auth__otp-box--error {
  border-color: var(--bss-ps-error);
  animation: bss-ps-shake 0.4s ease-in-out;
}

@keyframes bss-ps-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* Legacy OTP Input (Single Field) */
.bss-ps-auth .otp-input {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  letter-spacing: 0.75rem;
  text-align: center;
  font-size: var(--bss-ps-font-size-xl) !important;
  font-weight: 700;
  padding: 1rem !important;
}

/* Resend OTP Section */
.bss-ps-auth .resend-otp {
  margin-top: var(--bss-ps-spacing-xl);
  text-align: center;
}

/* Resend OTP Button with Integrated Countdown */
.bss-ps-auth .resend-otp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--bss-ps-primary);
  font-weight: 600;
  cursor: pointer;
  padding: var(--bss-ps-spacing-sm) var(--bss-ps-spacing-md);
  border-radius: var(--bss-ps-radius-sm);
  transition: background-color var(--bss-ps-transition-base),
  color var(--bss-ps-transition-base),
  opacity var(--bss-ps-transition-base);
}

.bss-ps-auth .resend-otp-btn:hover {
  text-decoration: none;
}

.bss-ps-auth .resend-otp-btn:hover:not(:disabled) {
  background: rgba(74, 144, 226, 0.1);
}

.bss-ps-auth .resend-otp-btn:disabled,
.bss-ps-auth .resend-otp-btn--disabled {
  background-color: var(--bss-ps-bg-input);
  cursor: not-allowed;
  opacity: 0.7;
}

.bss-ps-auth .resend-otp-btn:disabled:hover,
.bss-ps-auth .resend-otp-btn--disabled:hover {
  text-decoration: none;
}

.bss-ps-auth .resend-otp-btn .resend-countdown {
  font-variant-numeric: tabular-nums;
}

.bss-ps-auth .resend-otp-btn #cooldown-timer {
  font-variant-numeric: tabular-nums;
}

/* =============================================================================
   Email Recovery Sent Section
   ============================================================================= */
.email-recovery-sent {
  text-align: center;
  padding: var(--bss-ps-spacing-lg);
}

.email-sent-info {
  margin-bottom: var(--bss-ps-spacing-lg);
}

.email-sent-info p {
  margin-bottom: var(--bss-ps-spacing-sm);
  color: var(--bss-ps-text-muted);
  font-size: var(--bss-ps-font-size-base);
}

.email-sent-info .submitted-email {
  font-size: 1.1em;
  color: var(--bss-ps-text);
  display: block;
  padding: var(--bss-ps-spacing-md);
  background: var(--bss-ps-bg-subtle);
  border-radius: var(--bss-ps-radius-sm);
  word-break: break-all;
}

.resend-email-section {
  margin: var(--bss-ps-spacing-lg) 0;
}

.resend-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: none;
  border: none;
  color: var(--bss-ps-primary);
  font-weight: 600;
  cursor: pointer;
  padding: var(--bss-ps-spacing-sm) var(--bss-ps-spacing-md);
  border-radius: var(--bss-ps-radius-sm);
  transition: background-color var(--bss-ps-transition-base),
  color var(--bss-ps-transition-base),
  opacity var(--bss-ps-transition-base);
}

.resend-email-btn:hover:not(:disabled) {
  background: rgba(74, 144, 226, 0.1);
  text-decoration: underline;
}

.resend-email-btn:disabled,
.resend-email-btn--disabled {
  color: var(--bss-ps-text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.resend-email-btn:disabled:hover,
.resend-email-btn--disabled:hover {
  background: none;
  text-decoration: none;
}

.resend-email-btn .resend-countdown {
  font-variant-numeric: tabular-nums;
}

.resend-email-btn #email-cooldown-timer {
  font-variant-numeric: tabular-nums;
}

.try-different-email {
  margin-top: var(--bss-ps-spacing-md);
}

.change-email-link {
  color: var(--bss-ps-primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: var(--bss-ps-font-size-sm);
}

.change-email-link:hover {
  color: var(--bss-ps-primary-dark, #3a7bc8);
}

/* =============================================================================
   Fieldset Reset
   ============================================================================= */
.bss-ps-auth .fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.bss-ps-auth .fieldset .title {
  margin-bottom: var(--bss-ps-spacing-lg);
  text-align: center;
  border-bottom: none;
}

.bss-ps-auth .fieldset .title strong {
  font-size: var(--bss-ps-font-size-lg);
  color: var(--bss-ps-text);
  font-weight: 500;
}

/* =============================================================================
   Accessibility
   ============================================================================= */
/* Visible focus indicator for keyboard users */
.bss-ps-auth *:focus-visible {
  outline: 2px solid var(--bss-ps-primary);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users on inputs (they have box-shadow) */
.bss-ps-auth input:focus:not(:focus-visible),
.bss-ps-auth select:focus:not(:focus-visible),
.bss-ps-auth button:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bss-ps-auth * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  .bss-ps-auth {
    --bss-ps-border: #000000;
    --bss-ps-text: #000000;
    --bss-ps-bg-input: #ffffff;
  }

  .bss-ps-auth__input,
  .bss-ps-auth .phone-input-wrapper,
  .bss-ps-auth__otp-box {
    border-width: 3px;
  }
}

/* =============================================================================
   Responsive Adjustments
   ============================================================================= */
@media (max-width: 767px) {
  .bss-ps-auth {
    margin: 0;
    padding: 0;
    border-radius: var(--bss-ps-radius-lg);
  }

  .bss-ps-auth .page-title h1,
  .bss-ps-auth__title {
    font-size: var(--bss-ps-font-size-lg);
  }

  /* Stack external auth below form on mobile */
  .bss-ps-auth__social-section {
    margin-top: var(--bss-ps-spacing-lg);
    padding-top: var(--bss-ps-spacing-lg);
    border-top: 1px solid var(--bss-ps-border);
  }

  /* Show mobile OR divider */
  .bss-ps-auth .external-authentication .title {
    display: flex;
    align-items: center;
    gap: var(--bss-ps-spacing-md);
  }

  .bss-ps-auth .external-authentication .title::before,
  .bss-ps-auth .external-authentication .title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bss-ps-border);
  }
}

/* =============================================================================
   New Wrapper Support
   ============================================================================= */
.bss-ps-auth .new-wrapper {
  margin-top: var(--bss-ps-spacing-xl);
}

.bss-ps-auth .returning-wrapper,
.bss-ps-auth .registration-wrapper {
  border: none;
  margin: 0;
  padding: 0;
}

/* Result message */
.bss-ps-auth .result {
  margin-top: var(--bss-ps-spacing-md);
}

/* =============================================================================
   Smart Input (Auto-detect Phone/Email)
   ============================================================================= */
.bss-ps-smart-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bss-ps-bg-input);
  border: 2px solid var(--bss-ps-border);
  border-radius: var(--bss-ps-radius-md);
  transition: border-color var(--bss-ps-transition-fast),
              background var(--bss-ps-transition-fast),
              box-shadow var(--bss-ps-transition-fast);
  overflow: visible;
}

.bss-ps-smart-input-wrapper:hover {
  border-color: var(--bss-ps-text-light);
}

.bss-ps-smart-input-wrapper:focus-within {
  border-color: var(--bss-ps-border-focus);
  background: var(--bss-ps-bg);
  box-shadow: var(--bss-ps-shadow-focus);
}

/* Country selector prefix - hidden by default, slides in for phone mode */
.bss-ps-smart-input-prefix {
  width: 0;
  opacity: 0;
  transition: width var(--bss-ps-transition-slow),
              opacity var(--bss-ps-transition-slow);
  flex-shrink: 0;
}

.bss-ps-smart-input-wrapper--phone .bss-ps-smart-input-prefix {
  width: 120px;
  opacity: 1;
}

/* The input field itself — high specificity to override global .inputs input styles */
.bss-ps-auth .form-fields .inputs .bss-ps-smart-input-wrapper .bss-ps-smart-input,
.bss-ps-smart-input-wrapper .bss-ps-smart-input {
  flex: 1;
  width: auto;
  border: none !important;
  background: transparent !important;
  outline: none;
  padding: 0.875rem 1rem;
  font-size: var(--bss-ps-font-size-base);
  color: var(--bss-ps-text);
  min-width: 0;
  border-radius: 0;
  box-shadow: none !important;
  height: 50px;
  box-sizing: border-box;
}

.bss-ps-auth .form-fields .inputs .bss-ps-smart-input-wrapper .bss-ps-smart-input:hover,
.bss-ps-smart-input-wrapper .bss-ps-smart-input:hover {
  border: none !important;
  box-shadow: none !important;
}

.bss-ps-auth .form-fields .inputs .bss-ps-smart-input-wrapper .bss-ps-smart-input:focus,
.bss-ps-smart-input-wrapper .bss-ps-smart-input:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}

.bss-ps-smart-input-wrapper .bss-ps-smart-input::placeholder {
  color: var(--bss-ps-text-light);
}

/* Validation states */
.bss-ps-auth .inputs.bss-ps-field--error .bss-ps-smart-input-wrapper {
  border-color: var(--bss-ps-error) !important;
  background-color: var(--bss-ps-error-bg) !important;
}

.bss-ps-auth .inputs.bss-ps-field--valid .bss-ps-smart-input-wrapper {
  border-color: var(--bss-ps-success) !important;
}

.bss-ps-auth .inputs.bss-ps-field--shake .bss-ps-smart-input-wrapper {
  animation: bss-ps-inputShake 0.4s ease-in-out;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bss-ps-smart-input-prefix {
    transition: none;
  }
  .bss-ps-smart-input-wrapper {
    transition: none;
  }
}

/* =============================================================================
   Real-Time Validation States
   ============================================================================= */
/* Touched field indicator (subtle) */
.bss-ps-auth .inputs.bss-ps-field--touched {
  /* Field has been interacted with */
}

/* Error state for inputs */
.bss-ps-auth .inputs.bss-ps-field--error input,
.bss-ps-auth .inputs.bss-ps-field--error textarea {
  border-color: var(--bss-ps-error) !important;
  background-color: var(--bss-ps-error-bg) !important;
}

.bss-ps-auth .inputs.bss-ps-field--error .phone-input-wrapper {
  border-color: var(--bss-ps-error) !important;
  background-color: var(--bss-ps-error-bg) !important;
}

/* Valid state for inputs */
.bss-ps-auth .inputs.bss-ps-field--valid input,
.bss-ps-auth .inputs.bss-ps-field--valid textarea {
  border-color: var(--bss-ps-success) !important;
}

.bss-ps-auth .inputs.bss-ps-field--valid .phone-input-wrapper {
  border-color: var(--bss-ps-success) !important;
}

/* Error message styling */
.bss-ps-field__error {
  display: block;
  font-size: var(--bss-ps-font-size-sm);
  color: var(--bss-ps-error);
  animation: bss-ps-slideDown var(--bss-ps-transition-fast);
}

@keyframes bss-ps-slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input shake animation for errors */
@keyframes bss-ps-inputShake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.bss-ps-auth .inputs.bss-ps-field--shake input,
.bss-ps-auth .inputs.bss-ps-field--shake textarea,
.bss-ps-auth .inputs.bss-ps-field--shake .phone-input-wrapper {
  animation: bss-ps-inputShake 0.4s ease-in-out;
}

/* Hide ASP.NET validation spans when using custom validation */
.bss-ps-auth .inputs.bss-ps-field--touched span[data-valmsg-for] {
  display: none;
}

/* =============================================================================
   Password Strength Indicator
   ============================================================================= */
.bss-ps-password-strength {
  display: none;
  margin-top: var(--bss-ps-spacing-sm);
  animation: bss-ps-fadeIn var(--bss-ps-transition-base);
}

.bss-ps-password-strength--visible {
  display: block;
}

.bss-ps-password-strength__bar {
  height: 4px;
  background: var(--bss-ps-bg-subtle);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--bss-ps-spacing-xs);
}

.bss-ps-password-strength__fill {
  height: 100%;
  width: 0;
  transition: width var(--bss-ps-transition-base), background-color var(--bss-ps-transition-base);
  border-radius: 2px;
}

.bss-ps-password-strength[data-strength="weak"] .bss-ps-password-strength__fill {
  background: var(--bss-ps-error);
}

.bss-ps-password-strength[data-strength="fair"] .bss-ps-password-strength__fill {
  background: #f59e0b;
}

.bss-ps-password-strength[data-strength="good"] .bss-ps-password-strength__fill {
  background: #10b981;
}

.bss-ps-password-strength[data-strength="strong"] .bss-ps-password-strength__fill {
  background: var(--bss-ps-success);
}

.bss-ps-password-strength__label {
  font-size: var(--bss-ps-font-size-sm);
  font-weight: 500;
  margin-bottom: var(--bss-ps-spacing-xs);
}

.bss-ps-password-strength[data-strength="weak"] .bss-ps-password-strength__label {
  color: var(--bss-ps-error);
}

.bss-ps-password-strength[data-strength="fair"] .bss-ps-password-strength__label {
  color: #f59e0b;
}

.bss-ps-password-strength[data-strength="good"] .bss-ps-password-strength__label {
  color: #10b981;
}

.bss-ps-password-strength[data-strength="strong"] .bss-ps-password-strength__label {
  color: var(--bss-ps-success);
}

.bss-ps-password-strength__rules {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--bss-ps-font-size-sm);
}

.bss-ps-password-strength__rule {
  display: flex;
  align-items: center;
  gap: var(--bss-ps-spacing-xs);
  color: var(--bss-ps-text-muted);
  padding: 2px 0;
}

.bss-ps-password-strength__rule::before {
  content: "\25CB"; /* Circle */
  font-size: 8px;
}

.bss-ps-password-strength__rule--pass {
  color: var(--bss-ps-success);
}

.bss-ps-password-strength__rule--pass::before {
  content: "\2713"; /* Checkmark */
  font-size: 12px;
}

.bss-ps-password-strength__rule--fail {
  color: var(--bss-ps-text-muted);
}

/* =============================================================================
   Password Visibility Toggle (Eye Icon)
   ============================================================================= */
.bss-ps-password-field {
  position: relative;
  width: 100%;
  display: inline-block;
}

.bss-ps-password-field input[type="password"],
.bss-ps-password-field input[type="text"] {
  padding-right: 44px !important;
}

.bss-ps-password-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  opacity: 0.6;
  font-size: 20px;
  line-height: 1;
  color: var(--bss-ps-text-muted);
  transition: opacity var(--bss-ps-transition-fast), color var(--bss-ps-transition-fast);
}

.bss-ps-password-eye:hover {
  opacity: 1;
  color: var(--bss-ps-text);
}

.bss-ps-password-eye i {
  display: block;
  line-height: 1;
}
