@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');
   * {
      box-sizing: border-box;
      font-family: 'IBM Plex Sans Thai', sans-serif;
    }
 html,
    body {
      min-height: 100%;
      margin: 0;
      background: #07171d;
    }

    body {
      overflow-x: hidden;
    }

    .sbc-page {
      min-height: 100vh;
      min-height: 100dvh;
      display: grid;
      place-items: center;
      padding: 32px;
      color: #0f172a;
      background:
        radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.24), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.20), transparent 30%),
        linear-gradient(135deg, rgba(3, 20, 28, 0.92), rgba(6, 33, 42, 0.95)),
        url("https://dev.smileboxclinic.com/crm/assets/logo.jpg");
      background-size: cover;
      background-position: center;
      position: relative;
    }

    .sbc-page::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
      background-size: 38px 38px;
      mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
      pointer-events: none;
    }

    .sbc-login-card {
      position: relative;
      z-index: 1;
      width: min(1380px, 100%);
      min-height: 680px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
      overflow: hidden;
      border-radius: 34px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    }

    .sbc-brand-panel {
      position: relative;
      padding: 56px;
      color: #ffffff;
      background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.92), rgba(20, 184, 166, 0.90)),
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.25), transparent 24%);
      overflow: hidden;
    }

    .sbc-brand-panel::before {
      content: "";
      position: absolute;
      width: 520px;
      height: 520px;
      left: -130px;
      bottom: -150px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
    }

    .sbc-brand-panel::after {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      right: -80px;
      top: -80px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.18);
    }

    .sbc-brand-inner {
      position: relative;
      z-index: 2;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 48px;
    }

    .sbc-chip {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      width: fit-content;
      padding: 10px 16px;
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 999px;
      background: rgba(255,255,255,0.14);
      backdrop-filter: blur(16px);
      font-size: 14px;
      font-weight: 600;
    }

    .sbc-chip-icon {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: rgba(255,255,255,0.20);
    }

    .sbc-title {
      margin: 34px 0 0;
      max-width: 480px;
      font-size: clamp(36px, 4vw, 58px);
      line-height: 1.08;
      letter-spacing: -0.04em;
      font-weight: 800;
    }

    .sbc-desc {
      max-width: 470px;
      margin-top: 20px;
      color: rgba(255,255,255,0.84);
      font-size: 15px;
      line-height: 1.8;
    }

    .sbc-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .sbc-stat {
      padding: 18px;
      border: 1px solid rgba(255,255,255,0.20);
      border-radius: 22px;
      background: rgba(255,255,255,0.13);
      backdrop-filter: blur(16px);
    }

    .sbc-stat i {
      width: 42px;
      height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 16px;
      background: rgba(255,255,255,0.18);
      margin-bottom: 14px;
    }

    .sbc-stat strong {
      display: block;
      font-size: 15px;
      margin-bottom: 4px;
    }

    .sbc-stat span {
      display: block;
      font-size: 13px;
      line-height: 1.6;
      color: rgba(255,255,255,0.78);
    }

    .sbc-form-panel {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 56px;
      background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 34%),
        #ffffff;
    }

    .sbc-form-box {
      width: 100%;
      max-width: 460px;
    }

    .sbc-logo-box {
      width: 96px;
      height: 96px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 34px;
      border: 1px solid #edf2f7;
      border-radius: 28px;
      background: #ffffff;
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    }

    .sbc-logo-box img {
      max-width: 76px;
      max-height: 76px;
      object-fit: contain;
    }

    .sbc-form-title {
      margin: 0;
      font-size: 44px;
      line-height: 1.1;
      letter-spacing: -0.045em;
      font-weight: 800;
      color: #111827;
    }

    .sbc-form-subtitle {
      margin: 14px 0 34px;
      color: #64748b;
      font-size: 15px;
      line-height: 1.7;
    }

    .sbc-alert {
      margin-bottom: 18px;
      padding: 14px 16px;
      border-radius: 18px;
      font-size: 14px;
      line-height: 1.6;
    }

    .sbc-alert-danger {
      border: 1px solid #fecaca;
      background: #fef2f2;
      color: #b91c1c;
    }

    .sbc-alert-success {
      border: 1px solid #bbf7d0;
      background: #f0fdf4;
      color: #15803d;
    }

    .sbc-field {
      margin-bottom: 22px;
    }

    .sbc-label {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 10px;
      color: #1f2937;
      font-size: 15px;
      font-weight: 700;
    }

    .sbc-label i {
      color: #0891b2;
      font-size: 15px;
    }

    .sbc-input-wrap {
      position: relative;
    }

    .sbc-input {
      width: 100%;
      height: 56px;
      border: 1px solid #dbe3ea;
      border-radius: 18px;
      background: #ffffff;
      color: #0f172a;
      outline: none;
      padding: 0 18px 0 52px;
      font-size: 15px;
      transition: 0.18s ease;
    }

    .sbc-input::placeholder {
      color: #94a3b8;
    }

    .sbc-input:focus {
      border-color: #0891b2;
      box-shadow: 0 0 0 5px rgba(8, 145, 178, 0.13);
    }

    .sbc-input-icon {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      pointer-events: none;
      font-size: 15px;
    }

    .sbc-submit {
      width: 100%;
      height: 58px;
      border: 0;
      border-radius: 18px;
      cursor: pointer;
      color: #ffffff;
      background: linear-gradient(135deg, #0891b2, #14b8a6);
      box-shadow: 0 18px 34px rgba(8, 145, 178, 0.25);
      font-size: 16px;
      font-weight: 800;
      transition: 0.18s ease;
    }

    .sbc-submit:hover {
      transform: translateY(-1px);
      box-shadow: 0 22px 40px rgba(8, 145, 178, 0.32);
    }

    .sbc-submit:active {
      transform: translateY(0);
    }

    .sbc-footer-note {
      margin-top: 28px;
      padding: 18px;
      border: 1px solid #edf2f7;
      border-radius: 22px;
      background: #f8fafc;
      text-align: center;
      color: #64748b;
      font-size: 14px;
      line-height: 1.7;
    }

    .sbc-footer-note small {
      display: block;
      margin-top: 6px;
      color: #94a3b8;
      font-weight: 600;
    }

    @media (max-width: 980px) {
      .sbc-page {
        padding: 18px;
      }

      .sbc-login-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 28px;
      }

      .sbc-brand-panel {
        display: none;
      }

      .sbc-form-panel {
        padding: 34px 22px;
      }

      .sbc-logo-box {
        margin-left: auto;
        margin-right: auto;
      }

      .sbc-form-title,
      .sbc-form-subtitle {
        text-align: center;
      }

      .sbc-form-title {
        font-size: 32px;
      }
    }

     .sbc-lang-switcher {
      position: fixed;
      top: 18px;
      right: 18px;
      z-index: 9999;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      color: #0f172a;
      box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .sbc-lang-switcher i {
      color: #0891b2;
      font-size: 14px;
    }

    .sbc-lang-switcher select {
      appearance: none;
      -webkit-appearance: none;
      border: 0;
      outline: 0;
      background: transparent;
      color: #0f172a;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      padding-right: 4px;
    }

    #google_translate_element,
    .goog-te-gadget,
    .goog-te-banner-frame,
    iframe.skiptranslate,
    .goog-te-balloon-frame,
    #goog-gt-tt {
      display: none !important;
    }

    body {
      top: 0 !important;
    }



.sbc-swal-toast {
  width: min(92vw, 640px) !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #475569 !important;
  overflow: hidden !important;
}

.sbc-swal-toast .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.sbc-swal-toast .swal2-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  margin: 0 0 0 12px !important;
  border-radius: 999px !important;
  color: #94a3b8 !important;
  background: #f8fafc !important;
  font-size: 22px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: 0.18s ease !important;
}

.sbc-swal-toast .swal2-close:hover {
  color: #334155 !important;
  background: #f1f5f9 !important;
}

.sbc-swal-body {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.sbc-swal-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.sbc-swal-title {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.sbc-swal-html {
  margin: 4px 0 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

.sbc-swal-html strong {
  color: #475569 !important;
  font-weight: 800 !important;
}

.sbc-swal-icon {
  width: 43px !important;
  height: 43px !important;
  min-width: 43px !important;
  flex: 0 0 43px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  margin-right: 22px !important;
}

.sbc-swal-svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  color: currentColor !important;
}

.sbc-swal-icon.swal2-success {
  background: #dcfce7 !important;
  color: #16a34a !important;
}

.sbc-swal-icon.swal2-error {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.sbc-swal-icon.swal2-warning {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

.sbc-swal-icon.swal2-info {
  background: #cffafe !important;
  color: #0891b2 !important;
}

.sbc-swal-icon.swal2-question {
  background: #ede9fe !important;
  color: #7c3aed !important;
}

.sbc-swal-timer {
  background: linear-gradient(90deg, #06b6d4, #14b8a6) !important;
}

.sbc-swal-confirm {
  margin-top: 14px !important;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0891b2 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.24) !important;
}

.sbc-swal-toast.sbc-toast-success {
  border-color: rgba(34, 197, 94, 0.24) !important;
}

.sbc-swal-toast.sbc-toast-error {
  border-color: rgba(239, 68, 68, 0.24) !important;
}

.sbc-swal-toast.sbc-toast-warning {
  border-color: rgba(245, 158, 11, 0.28) !important;
}

.sbc-swal-toast.sbc-toast-info {
  border-color: rgba(6, 182, 212, 0.24) !important;
}

.sbc-swal-toast.sbc-toast-question {
  border-color: rgba(124, 58, 237, 0.24) !important;
}

.sbc-notify-compact {
  width: min(92vw, 460px) !important;
  padding: 14px 16px !important;
  border-radius: 20px !important;
}

.sbc-notify-wide {
  width: min(94vw, 760px) !important;
}

.sbc-notify-solid {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

.sbc-notify-solid .swal2-close {
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.sbc-notify-solid .swal2-close:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.sbc-notify-solid .sbc-swal-title {
  color: #ffffff !important;
}

.sbc-notify-solid .sbc-swal-html {
  color: #cbd5e1 !important;
}

.sbc-notify-solid .sbc-swal-html strong {
  color: #ffffff !important;
}

.sbc-notify-html-list {
  margin: 8px 0 0 !important;
  padding-left: 18px !important;
}

.sbc-notify-html-list li {
  margin-top: 4px !important;
}

@media (max-width: 640px) {
  .sbc-lang-switcher {
    top: 10px;
    right: 10px;
    padding: 7px 9px;
  }

  .sbc-swal-toast {
    width: calc(100vw - 24px) !important;
    padding: 15px 16px !important;
    border-radius: 20px !important;
  }

  .sbc-swal-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
    margin-right: 14px !important;
  }

  .sbc-swal-svg {
    width: 22px !important;
    height: 22px !important;
  }

  .sbc-swal-title {
    font-size: 15px !important;
  }

  .sbc-swal-html {
    font-size: 13px !important;
  }
}
