/* ==========================================================================
   SMSKash Authentication & Public Pages — Modern SaaS / Fintech UI System
   Design Tokens matching Homepage: Vivid Orange (#FF7900), Neutral Dark (#090C10), Clean Light (#F8FAFC)
   WCAG AA Compliant | Mobile-First Responsive Architecture
   ========================================================================== */

:root {
  --ws-brand-orange: #ff7900;
  --ws-brand-orange-hover: #ff8c1a;
  --ws-brand-orange-active: #e66d00;
  --ws-brand-orange-light: rgba(255, 121, 0, 0.12);
  --ws-brand-orange-border: rgba(255, 121, 0, 0.28);
  --ws-emerald: #10b981;
  --ws-emerald-light: rgba(16, 185, 129, 0.12);
  --ws-emerald-border: rgba(16, 185, 129, 0.25);

  /* Dark Theme Tokens (Default) */
  --ws-pub-canvas: #090c10;
  --ws-pub-surface: #0e1219;
  --ws-pub-raised: #151a24;
  --ws-pub-border: #1f2735;
  --ws-pub-border-strong: #2e384c;
  --ws-pub-line: #18202d;
  --ws-pub-text: #f1f4f9;
  --ws-pub-muted: #8895a7;
  --ws-pub-link: #ff8c1a;
  --ws-pub-card-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

html[data-bs-theme="light"] {
  --ws-pub-canvas: #f8fafc;
  --ws-pub-surface: #ffffff;
  --ws-pub-raised: #f1f4f9;
  --ws-pub-border: #dce2ed;
  --ws-pub-border-strong: #b8c4d6;
  --ws-pub-line: #e8edf5;
  --ws-pub-text: #0f172a;
  --ws-pub-muted: #475569;
  --ws-pub-link: #b94d00;
  --ws-pub-card-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* Base Body Reset */
body.ws-public {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--ws-pub-canvas) !important;
  color: var(--ws-pub-text) !important;
  font-family: "Inter", "Cairo", system-ui, -apple-system, sans-serif !important;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

[dir="rtl"] body.ws-public {
  font-family: "Cairo", "Inter", system-ui, -apple-system, sans-serif !important;
}

body.ws-public *,
body.ws-public *::before,
body.ws-public *::after {
  box-sizing: border-box;
}

body.ws-public .swal2-icon {
  box-sizing: content-box;
}

/* Public Header (Floating Clean Brand & Theme Switcher) */
.ws-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
}

.ws-public-header .ws-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ws-pub-text) !important;
  text-decoration: none;
}

.ws-public-header .ws-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ws-pub-text);
}

.ws-public-header .ws-brand-lockup-icon {
  height: 28px;
  width: 48px;
  display: block;
  flex-shrink: 0;
}

.ws-public-header .ws-brand-lockup-word {
  height: 21px;
  width: 105px;
  display: block;
  color: var(--ws-pub-text);
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .ws-public-header .ws-brand-lockup {
    gap: 7px;
  }
  .ws-public-header .ws-brand-lockup-icon {
    height: 24px;
    width: 41px;
  }
  .ws-public-header .ws-brand-lockup-word {
    height: 18px;
    width: 90px;
  }
}

.ws-public-header .ws-brand-mark {
  width: 38px;
  height: 40px;
  border-radius: 10px;
  background: var(--ws-brand-orange-light);
  border: 1px solid var(--ws-brand-orange-border);
  display: grid;
  place-items: center;
  color: var(--ws-brand-orange);
  flex-shrink: 0;
}

.ws-public-header .ws-brand-mark svg {
  width: 22px;
  height: 22px;
}

.ws-public-header .ws-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ws-public-header .ws-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ws-pub-text);
}

.ws-public-header .ws-brand-sub {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--ws-pub-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.ws-public-header .ws-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ws-pub-surface);
  border: 1px solid var(--ws-pub-border);
  color: var(--ws-pub-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.ws-public-header .ws-theme-toggle:hover {
  border-color: var(--ws-pub-muted);
  transform: rotate(15deg);
}

/* Public Main & Split Container */
.ws-public-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 48px;
}

.ws-public-panel {
  width: 100%;
  max-width: 1180px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Unified Split Layout */
.ws-auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 460px);
  align-items: center;
  gap: 68px;
  width: 100%;
}

.ws-auth-split:has(#kt_sign_up_form) {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 56px;
}

/* Editorial & Trust Aside */
.ws-auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.ws-auth-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ws-brand-orange-light);
  border: 1px solid var(--ws-brand-orange-border);
  color: var(--ws-brand-orange);
  font-size: 12.5px;
  font-weight: 750;
  margin-bottom: 18px;
  width: fit-content;
}

html[data-bs-theme="light"] .ws-auth-eyebrow-badge {
  color: #9a3412 !important;
  background: #fff7ed;
  border-color: #fed7aa;
}

.ws-auth-eyebrow-badge svg {
  width: 14px;
  height: 14px;
}

.ws-auth-aside-title {
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ws-pub-text);
  margin: 0 0 16px;
}

.ws-auth-aside-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ws-pub-muted);
  margin: 0 0 28px;
  max-width: 50ch;
}

/* Feature List */
.ws-auth-aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ws-pub-line);
}

.ws-auth-aside-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ws-pub-line);
}

.ws-auth-list-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ws-auth-list-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ws-pub-surface);
  border: 1px solid var(--ws-pub-border);
  display: grid;
  place-items: center;
  color: var(--ws-brand-orange);
  flex-shrink: 0;
}

html[data-bs-theme="light"] .ws-auth-list-icon {
  color: #b94d00;
  background: #f8fafc;
}

.ws-auth-list-icon svg {
  width: 18px;
  height: 18px;
}

.ws-auth-list-main strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--ws-pub-text);
  line-height: 1.35;
}

.ws-auth-list-main small {
  display: block;
  font-size: 12px;
  color: var(--ws-pub-muted);
  margin-top: 2px;
}

.ws-auth-list-check {
  width: 18px;
  height: 18px;
  color: var(--ws-emerald);
  flex-shrink: 0;
}

html[data-bs-theme="light"] .ws-auth-list-check {
  color: #065f46;
}

/* Trust Card at bottom of aside */
.ws-auth-trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ws-pub-surface);
  border: 1px solid var(--ws-pub-border);
  width: fit-content;
}

.ws-auth-trust-metric {
  display: flex;
  flex-direction: column;
}

.ws-auth-trust-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--ws-pub-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.ws-auth-trust-lbl {
  font-size: 11px;
  color: var(--ws-pub-muted);
  margin-top: 2px;
}

.ws-auth-trust-sep {
  width: 1px;
  height: 24px;
  background: var(--ws-pub-border);
}

.ws-auth-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ws-emerald);
}

html[data-bs-theme="light"] .ws-auth-trust-badge {
  color: #065f46;
}

.ws-auth-trust-badge svg {
  width: 15px;
  height: 15px;
}

/* The Form Card */
.ws-auth-content {
  background: var(--ws-pub-surface);
  border: 1px solid var(--ws-pub-border);
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: var(--ws-pub-card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ws-auth-card-head {
  text-align: center;
  margin-bottom: 26px;
}

.ws-auth-card-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ws-pub-text);
  margin: 0 0 6px;
}

.ws-auth-card-subtitle {
  font-size: 13.5px;
  color: var(--ws-pub-muted);
  margin: 0;
  line-height: 1.5;
}

/* Form Groups & Inputs */
.ws-auth-field {
  margin-bottom: 18px;
}

.ws-auth-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 650;
  color: var(--ws-pub-text);
  margin-bottom: 6px;
}

.ws-auth-label .ws-auth-req {
  color: var(--ws-brand-orange);
  margin-inline-start: 3px;
}

.ws-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ws-auth-input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 14px;
  width: 17px;
  height: 17px;
  color: var(--ws-pub-muted);
  pointer-events: none;
  z-index: 2;
}

.ws-public .form-control {
  width: 100%;
  height: 46px;
  background: var(--ws-pub-raised) !important;
  border: 1px solid var(--ws-pub-border) !important;
  border-radius: 10px !important;
  color: var(--ws-pub-text) !important;
  padding: 10px 14px !important;
  font-size: 14.5px !important;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ws-auth-input-wrap.has-icon .form-control {
  padding-inline-start: 40px !important;
}

.ws-public .form-control:hover {
  border-color: var(--ws-pub-border-strong) !important;
}

.ws-public .form-control:focus {
  outline: none !important;
  border-color: var(--ws-brand-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.22) !important;
  background: var(--ws-pub-surface) !important;
}

.ws-public .form-control::placeholder {
  color: var(--ws-pub-muted) !important;
  opacity: 0.7;
}

.ws-public .form-control.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* Password Wrap & Toggle */
.ws-password-wrap {
  position: relative;
  width: 100%;
}

.ws-password-wrap .form-control {
  padding-inline-end: 42px !important;
}

.ws-password-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--ws-pub-muted);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: color 0.18s ease;
}

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

.ws-password-toggle:focus {
  outline: 2px solid var(--ws-brand-orange);
  outline-offset: 1px;
}

.ws-password-toggle svg {
  width: 18px;
  height: 18px;
}

/* Error feedback below fields */
.ws-auth-error {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 5px;
}

.ws-auth-error svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Password Meter */
.ws-password-meter {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.ws-password-meter > div {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--ws-pub-border-strong);
  transition: background 0.2s ease;
}

.ws-password-meter > div.active {
  background: var(--ws-emerald) !important;
}

.ws-password-hint {
  font-size: 12px;
  color: var(--ws-pub-muted);
  margin-top: 4px;
}

/* Grid for 2-column fields (Names / Passwords) */
.ws-auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Form Checkbox (Remember Me) */
.ws-auth-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.ws-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-pub-muted);
  margin: 0;
  user-select: none;
}

.ws-auth-remember input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--ws-brand-orange);
  cursor: pointer;
  border-radius: 4px;
  margin: 0;
}

/* Primary Button (Vivid Orange, Solid, Pure White Text) */
.ws-public .btn.btn-primary,
.ws-auth-content .btn.btn-primary,
.ws-auth-submit {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ws-brand-orange) !important;
  background-color: var(--ws-brand-orange) !important;
  border: 1px solid var(--ws-brand-orange) !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 750;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 121, 0, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.ws-public .btn.btn-primary:hover,
.ws-auth-content .btn.btn-primary:hover,
.ws-auth-submit:hover {
  background: var(--ws-brand-orange-hover) !important;
  border-color: var(--ws-brand-orange-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 121, 0, 0.45) !important;
}

.ws-public .btn.btn-primary:active,
.ws-auth-content .btn.btn-primary:active,
.ws-auth-submit:active {
  transform: translateY(0);
}

.ws-public .btn.btn-primary svg,
.ws-auth-content .btn.btn-primary svg {
  color: #ffffff !important;
}

/* Secondary & Ghost Buttons */
.ws-public .btn.btn-light,
.ws-public .btn.btn-ghost,
.ws-auth-content .btn.btn-light {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--ws-pub-raised) !important;
  border: 1px solid var(--ws-pub-border) !important;
  color: var(--ws-pub-text) !important;
  font-size: 14.5px;
  font-weight: 650;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.ws-public .btn.btn-light:hover,
.ws-auth-content .btn.btn-light:hover {
  background: var(--ws-pub-surface) !important;
  border-color: var(--ws-pub-border-strong) !important;
}

/* Links */
.ws-auth-link {
  color: var(--ws-pub-link) !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ws-auth-link:hover {
  color: var(--ws-brand-orange) !important;
  text-decoration: underline;
}

.ws-auth-link-sm {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ws-pub-link) !important;
  text-decoration: none;
}

.ws-auth-link-sm:hover {
  color: var(--ws-brand-orange) !important;
  text-decoration: underline;
}

/* Footer Switch (Sign up <-> Sign in) */
.ws-auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ws-pub-muted);
}

/* Alerts */
.ws-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.ws-auth-alert-danger,
.alert.alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border-radius: 10px;
}

html[data-bs-theme="light"] .ws-auth-alert-danger,
html[data-bs-theme="light"] .alert.alert-danger {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

.ws-auth-alert-success,
.alert.alert-success {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border-radius: 10px;
}

html[data-bs-theme="light"] .ws-auth-alert-success,
html[data-bs-theme="light"] .alert.alert-success {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}

/* Actions Row (e.g. Cancel + Submit) */
.ws-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-auth-actions > .btn {
  flex: 1;
}

/* Public Footer */
.ws-public-footer {
  text-align: center;
  padding: 24px 32px;
  font-size: 12.5px;
  color: var(--ws-pub-muted);
  border-top: 1px solid var(--ws-pub-line);
}

.ws-public-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.ws-public-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ws-public-footer-links a {
  color: var(--ws-pub-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ws-public-footer-links a:hover {
  color: var(--ws-pub-text);
}

/* Public Transfer & Error Layouts */
.ws-public-panel:has(.ws-transfer) {
  max-width: 620px;
}

.ws-public-panel:has(.ws-error-card) {
  max-width: 540px;
}

.ws-transfer,
.ws-error-card {
  background: var(--ws-pub-surface);
  border: 1px solid var(--ws-pub-border);
  border-radius: 18px;
  padding: 36px 34px;
  box-shadow: var(--ws-pub-card-shadow);
}

.ws-transfer #paymentForm {
  width: 100%;
}

.ws-transfer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ws-brand-orange-light);
  border: 1px solid var(--ws-brand-orange-border);
  color: var(--ws-brand-orange);
  font-size: 12px;
  font-weight: 750;
}

html[data-bs-theme="light"] .ws-transfer-badge {
  color: #9a3412 !important;
  background: #fff7ed;
  border-color: #fed7aa;
}

.ws-transfer-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--ws-pub-raised);
  border: 1px solid var(--ws-pub-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.ws-transfer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.ws-transfer .btn.btn-light-primary.active {
  background: var(--ws-brand-orange) !important;
  border: 1px solid var(--ws-brand-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 121, 0, 0.3) !important;
}

.ws-transfer .btn.btn-light-primary.active i {
  color: #ffffff !important;
}

.ws-transfer #instructions {
  background: var(--ws-pub-raised) !important;
  border: 1px dashed var(--ws-pub-border-strong) !important;
  border-radius: 14px !important;
}

.ws-transfer-step-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ws-pub-text);
  margin-bottom: 6px;
}

.ws-transfer-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 10px;
  background: var(--ws-pub-surface);
  border: 1px solid var(--ws-pub-border);
}

.ws-transfer-rate-label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ws-pub-muted);
}

.ws-transfer-rate-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--ws-emerald);
  font-variant-numeric: tabular-nums;
}

html[data-bs-theme="light"] .ws-transfer-rate-value {
  color: #065f46;
}

.ws-transfer-step-note {
  display: block;
  font-size: 12px;
  color: var(--ws-pub-muted);
}

html[data-bs-theme="light"] .ws-transfer #instructions .badge-light-primary {
  color: #963b00 !important;
  background: rgba(255, 121, 0, 0.14) !important;
  border: 1px solid rgba(185, 77, 0, 0.28) !important;
}

.ws-transfer .d-flex.flex-stack {
  gap: 12px;
}

.ws-transfer .d-flex.flex-stack > .btn,
.ws-transfer .d-flex.flex-stack > div {
  margin: 0 !important;
  flex: 1;
}

.ws-error {
  text-align: center;
  padding: 8px 0;
}

.ws-error-code {
  display: block;
  font-size: clamp(64px, 10vw, 88px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--ws-brand-orange);
  margin: 8px 0 14px;
}

.ws-error h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ws-pub-text);
  margin-bottom: 10px;
}

.ws-error p {
  color: var(--ws-pub-muted);
  font-size: 14px;
  max-width: 40ch;
  margin: 0 auto 24px;
}

.ws-error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ws-error-actions > .btn {
  flex: 1;
  width: auto !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .ws-public-header {
    padding: 16px 20px;
  }

  .ws-public-panel {
    max-width: 480px;
  }

  .ws-auth-split,
  .ws-auth-split:has(#kt_sign_up_form) {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ws-auth-aside {
    display: none !important;
  }

  .ws-auth-content {
    padding: 32px 26px;
    border-radius: 16px;
  }

  .ws-public-footer-inner {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .ws-public-header {
    padding: 14px 16px;
  }

  .ws-public-main {
    padding: 10px 14px 32px;
  }

  .ws-auth-content,
  .ws-transfer,
  .ws-error-card {
    padding: 26px 18px;
  }

  .ws-auth-card-title {
    font-size: 21px;
  }

  .ws-auth-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ws-auth-actions,
  .ws-error-actions,
  .ws-transfer .d-flex.flex-stack {
    flex-direction: column-reverse;
  }

  .ws-auth-actions > .btn,
  .ws-error-actions > .btn,
  .ws-transfer .d-flex.flex-stack > .btn,
  .ws-transfer .d-flex.flex-stack > div {
    width: 100% !important;
  }
}
