* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
  background: linear-gradient(135deg, #fce8e8 0%, #ffffff 100%);
  min-height: 100vh;
  color: #2d3436;
  overflow-x: hidden;
}

/* ── Animated background particles ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(242, 110, 100, 0.15), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(121, 82, 157, 0.1), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(242, 110, 100, 0.15), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(121, 82, 157, 0.1), transparent),
    radial-gradient(3px 3px at 10% 80%, rgba(242, 110, 100, 0.1), transparent),
    radial-gradient(3px 3px at 90% 10%, rgba(121, 82, 157, 0.1), transparent);
  z-index: 0;
  pointer-events: none;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

/* ── Logo Section ── */
.logo-section {
  text-align: center;
  margin-bottom: 35px;
}

.logo-section img {
  max-width: 220px;
  max-height: 80px;
  filter: drop-shadow(0 4px 12px rgba(242, 110, 100, 0.15));
}

.logo-section p {
  font-size: 0.95rem;
  color: #636e72;
  margin-top: 10px;
}

/* ── Company Logo Wrapper ── */
.company-logo-wrapper {
  margin-top: -110px;
}

.company-logo-inner {
  display: inline-block;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.company-logo-inner img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Section Titles ── */
.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.section-title p {
  font-size: 0.95rem;
  color: #636e72;
}

.section-title .step-badge {
  display: inline-block;
  background: #f26e64;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(242, 110, 100, 0.3);
}

/* ── Billing Toggle ── */
.billing-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 35px;
  gap: 16px;
}

.billing-toggle {
  display: flex;
  background: #f1f2f6;
  border-radius: 12px;
  padding: 4px;
  position: relative;
}

.billing-toggle .toggle-option {
  padding: 10px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #636e72;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.billing-toggle .toggle-option:hover {
  color: #2d3436;
}

.billing-toggle .toggle-option.active {
  background: #fff;
  color: #2d3436;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.billing-save-badge {
  display: inline-block;
  background: linear-gradient(135deg, #26b15f, #20a854);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Price transition animation */
.plan-price .amount,
.plan-price .cycle {
  transition: opacity 0.25s ease;
}

.plan-price.switching .amount,
.plan-price.switching .cycle {
  opacity: 0.3;
}

/* ── Plan Cards Grid ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.plan-card {
  background: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 16px;
  padding: 28px 24px;
  cursor: default;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #f26e64;
  opacity: 0;
  transition: opacity 0.3s;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: #f26e64;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 40px rgba(242, 110, 100, 0.08);
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card-body {
  flex: 1;
}

.plan-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.plan-badge.free {
  background: rgba(46, 213, 115, 0.15);
  color: #26b15f;
}

.plan-badge.paid {
  background: rgba(121, 82, 157, 0.12);
  color: #79529d;
}

.plan-badge.custom {
  background: rgba(255, 165, 2, 0.15);
  color: #e69500;
}

.plan-badge.default-badge {
  background: rgba(242, 110, 100, 0.12);
  color: #f26e64;
  margin-left: 6px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 16px;
}

.plan-price {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe6e9;
}

.plan-price .amount {
  font-size: 2rem;
  font-weight: 800;
  color: #2d3436;
  line-height: 1;
}

.plan-price .amount .currency {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
  color: #636e72;
}

.plan-price .cycle {
  font-size: 0.8rem;
  color: #636e72;
  margin-top: 2px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.plan-features li {
  font-size: 0.85rem;
  color: #636e72;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li i {
  color: #79529d;
  font-size: 0.7rem;
  width: 16px;
  text-align: center;
}

.plan-desc {
  font-size: 0.82rem;
  color: #636e72;
  line-height: 1.5;
  margin-bottom: 18px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-select-btn {
  width: 100%;
  padding: 10px 0;
  border: 1px solid #f26e64;
  border-radius: 10px;
  background: transparent;
  color: #f26e64;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.plan-select-btn:hover {
  background: rgba(242, 110, 100, 0.05);
}



/* ── Addon Comparison Table ── */
.addon-comparison-section {
  background: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.addon-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.addon-table th,
.addon-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #edf2f7;
}

.addon-table th {
  font-weight: 700;
  color: #2d3436;
  background: #fdfdfd;
  font-size: 0.95rem;
}

.addon-table th:first-child,
.addon-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #2d3436;
}

.addon-table td {
  font-size: 0.85rem;
  color: #636e72;
}

.addon-table .plan-name-th {
  color: #79529d;
}

.addon-table .included-icon {
  color: #26b15f;
  font-size: 1.1rem;
}

.addon-table .not-included {
  color: #b2bec3;
}

.addon-table .addon-price {
  display: inline-block;
  background: rgba(242, 110, 100, 0.08);
  color: #f26e64;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

.addon-table tbody tr:hover {
  background: #fcfcfc;
}

/* ── Registration Section ── */
.auth-section {
  background: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.auth-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 520px;
}

/* Left branding panel */
.auth-brand {
  background: linear-gradient(160deg, #79529d 0%, #5d3d7a 100%);
  padding: 50px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 100%;
  height: 160%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.auth-brand .brand-content {
  position: relative;
  z-index: 2;
}

.auth-brand h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.auth-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 30px;
}

.brand-features {
  list-style: none;
  padding: 0;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.brand-features li .icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Right form panel */
.auth-form-panel {
  padding: 40px 40px;
}

.auth-form-panel .form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 6px;
}

.auth-form-panel .form-subtitle {
  font-size: 0.85rem;
  color: #636e72;
  margin-bottom: 24px;
}

/* Toggle Buttons */
.type-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.type-toggle .toggle-btn {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #dfe6e9;
  border-radius: 10px;
  background: #fdfdfd;
  color: #636e72;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.type-toggle .toggle-btn:hover {
  border-color: #f26e64;
  color: #f26e64;
  background: #fffafa;
}

.type-toggle .toggle-btn.active {
  background: #f26e64;
  border-color: transparent;
  color: #fff;
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-field {
  position: relative;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #636e72;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  padding-right: 38px;
  background: #fbfbfb;
  border: 1px solid #dfe6e9;
  border-radius: 10px;
  color: #2d3436;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
  outline: none;
}

.form-field input::placeholder {
  color: #b2bec3;
}

.form-field input:focus {
  border-color: #f26e64;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(242, 110, 100, 0.15);
}

.form-field .input-wrapper .field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b2bec3;
  font-size: 0.85rem;
  pointer-events: none;
}

.form-field input.is-invalid {
  border-color: #ff4757;
}

.form-field input.is-valid {
  border-color: #26b15f;
}

/* Checkboxes */
.form-checks {
  margin: 18px 0;
}

.form-checks .check-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.form-checks .check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f26e64;
  cursor: pointer;
}

.form-checks .check-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #dfe6e9;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: all 0.2s ease-in-out;
  margin: 0;
  flex-shrink: 0;
}

.form-checks .check-item input[type="radio"]:checked {
  border-color: #f26e64;
}

.form-checks .check-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #f26e64;
  border-radius: 50%;
}

.form-checks .check-item label {
  font-size: 0.85rem;
  color: #636e72;
  cursor: pointer;
  margin: 0;
}

.form-checks .check-item label a {
  color: #f26e64;
  text-decoration: none;
  font-weight: 600;
}

.form-checks .check-item label a:hover {
  text-decoration: underline;
}

.form-checks .check-item .invalid-feedback {
  flex-basis: 100%;
  margin-top: 2px;
  margin-left: 24px;
}

/* Selected plan indicator */
.selected-plan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff9f9;
  border: 1px solid #fbdad8;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.selected-plan-bar .plan-label {
  color: #636e72;
}

.selected-plan-bar .plan-value {
  color: #f26e64;
  font-weight: 700;
}

.selected-plan-bar .change-plan {
  color: #79529d;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s;
}

.selected-plan-bar .change-plan:hover {
  color: #5d3d7a;
}

/* Submit button */
.btn-register {
  width: 100%;
  padding: 13px;
  background: #f26e64;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(242, 110, 100, 0.3);
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 110, 100, 0.4);
  background: #f05a4f;
}

.btn-register:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-register .spinner {
  display: none;
  margin-left: 8px;
}

/* Links */
.form-links {
  text-align: center;
  margin-top: 18px;
}

.form-links a {
  color: #636e72;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}

.form-links a:hover {
  color: #f26e64;
}

/* Employee message */
.employee-message {
  display: none;
  background: #fff5f5;
  border: 1px solid #ffe3e3;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: #ff4757;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.employee-message i {
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: block;
}

/* Error messages */
.error,
.invalid-feedback {
  color: #ff4757 !important;
  font-size: 0.75rem;
  margin-top: 3px;
}

/* ── No Plans Message ── */
.no-plans-msg {
  text-align: center;
  padding: 40px;
  color: #636e72;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .company-logo-wrapper {
    margin-top: -20px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    order: 2;
    padding: 30px 25px;
  }

  .auth-form-panel {
    order: 1;
  }

  .auth-brand h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 20px 12px 40px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    padding: 25px 20px;
  }

  .type-toggle {
    flex-direction: column;
  }
}


/* Specific to login */
#associated_list_box {
  margin-top: 20px;
  background: #fffafa;
  border: 1px solid #fbdad8;
  border-radius: 10px;
  padding: 15px;
}

/* Common utility classes */
.d-none {
  display: none !important;
}

.position-relative {
  position: relative;
}

.text-decoration-none {
  text-decoration: none !important;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

/* Language Switcher */
.auth-lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* RTL Support for Auth Pages */
html[dir="rtl"] .auth-lang-switcher,
.translated-rtl .auth-lang-switcher {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .password-toggle,
.translated-rtl .password-toggle {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .text-left,
.translated-rtl .text-left,
html[dir="rtl"] .auth-title,
.translated-rtl .auth-title,
html[dir="rtl"] .auth-subtitle,
.translated-rtl .auth-subtitle,
html[dir="rtl"] .form-field label,
.translated-rtl .form-field label,
html[dir="rtl"] .form-hint-text,
.translated-rtl .form-hint-text {
  text-align: right;
}

html[dir="rtl"] .form-field input,
.translated-rtl .form-field input {
  padding-right: 14px;
  padding-left: 38px;
}

html[dir="rtl"] .form-field .input-wrapper .field-icon,
.translated-rtl .form-field .input-wrapper .field-icon {
  right: auto;
  left: 14px;
}

html[dir="rtl"] .form-checks .check-item .invalid-feedback,
.translated-rtl .form-checks .check-item .invalid-feedback {
  margin-left: 0;
  margin-right: 26px;
}

.form-hint-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f26e64;
  margin-bottom: 10px;
}