@import url("https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@300;400;500;600&display=swap");

body {
  font-family: "Kantumruy Pro", sans-serif;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-filter-button {
  display: none !important;
}

@layer base {
  :root {
    --primary-color: #003262;
    --color-blue: #0075ff;
    --color-blue-dark: #12163c;
    --color-blue-navy: #09244b;
    --bs-primary-rgb: #003262;

    --color-black: #202020;
    --color-gray: #84818a;
    --text-color: #202020;
    --color-gray-light: #e2e2e2;
    --color-gray-pale: #d5d5d5;
    --color-text-sidebar: #7894b1;

    --color-bg-light: #f6f9fe;
    --color-bg-card: #f6f9fe;
    --color-bg-sidebar-navbar: #eff5ff;

    --color-success: #04d839;
    --color-warning: #ffcc00;
    --color-error: #ff2424;
    --color-teal: #00b69b;

    --color-blue-50: rgba(239, 245, 255, 0.5);

    --color-success-50: rgba(4, 216, 57, 0.5);
    --color-warning-50: rgba(255, 204, 0, 0.5);
    --color-error-50: rgba(255, 36, 36, 0.3);

    --secondary-green: #4ad991;
    --secondary-yellow: #fec53d;
    --secondary-orange: #ff9066;
    --secondary-blue: #60a5fa;
    --secondary-purple: #a855f7;
    --secondary-cyan: #93c5fd;

    /* Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Named text styles (from Figma variable defs) */
    --text-xs: 11px;
    --text-sm: 14px;
    --text-md: 16px; 
    --text-lg: 18px; 
    --text-xl: 20px; 
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 36px;
    --text-5xl: 48px;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* border */
    --border-1: 1px solid #f0f0f0;

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 350ms ease;

    /* Z-index */
    --z-base: 0;
    --z-raised: 10;
    --z-dropdown: 100;
    --z-modal: 200;
    --z-toast: 300;

    /* Line heights */
    --lh-xs: 16px;
    --lh-sm: 20px;
    --lh-md: 24px;
    --lh-lg: 28px;

    /* Letter spacing */
    --letter-spacing-default: 0px;
    --letter-spacing-wide: 1px;
  }

  html {
    scroll-behavior: smooth;
  }

  /* Line Clamp */
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 0 !important;
  }


  /* Add floating tooltip box */
  [data-tooltip] {
    position: relative;
    /* cursor: pointer; */ /* Removed to avoid forcing pointer on non-interactive elements */
  }

  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #334155;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1070;
    font-family: "Kantumruy Pro", sans-serif;
    text-align: center;
  }

  [data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
  }

  /* Tooltip arrow */
  [data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #334155 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
  }

  [data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
  }

  /* Ensure the hovered element is above siblings so tooltip isn't buried */
  [data-tooltip]:hover {
    z-index: 1080;
  }

  /* Bottom position modifier */
  [data-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(8px);
  }

  [data-tooltip-pos="bottom"]:hover::after {
    transform: translateX(-50%) translateY(12px);
  }

  [data-tooltip-pos="bottom"]::before {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(2px);
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #334155 transparent;
  }

  [data-tooltip-pos="bottom"]:hover::before {
    transform: translateX(-50%) translateY(6px);
  }

  /* Right position modifier */
  [data-tooltip-pos="right"]::after {
    bottom: auto;
    left: 100%;
    top: 50%;
    transform: translateX(8px) translateY(-50%);
  }

  [data-tooltip-pos="right"]:hover::after {
    transform: translateX(12px) translateY(-50%);
  }

  [data-tooltip-pos="right"]::before {
    bottom: auto;
    left: 100%;
    top: 50%;
    transform: translateX(2px) translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-color: transparent #334155 transparent transparent;
  }

  [data-tooltip-pos="right"]:hover::before {
    transform: translateX(6px) translateY(-50%);
  }

  /* Tablet */
  @media screen and (max-width: 1024px) {
    :root {
      --text-xs: 10px;
      --text-sm: 13px;
      --text-md: 15px;
      --text-lg: 17px;
      --text-xl: 18px;
      --text-2xl: 22px;
      --text-3xl: 26px;
      --text-4xl: 32px;
      --text-5xl: 38px;
    }
  }

  /* Mobile */
  @media screen and (max-width: 768px) {
    :root {
      --text-xs: 9px;
      --text-sm: 12px;
      --text-md: 14px;
      --text-lg: 16px;
      --text-xl: 18px;
      --text-2xl: 20px;
      --text-3xl: 24px;
      --text-4xl: 28px;
      --text-5xl: 34px;
    }
  }

  /* Small Mobile */
  @media screen and (max-width: 480px) {
    :root {
      --text-xs: 8px;
      --text-sm: 11px;
      --text-md: 13px;
      --text-lg: 15px;
      --text-xl: 16px;
      --text-2xl: 18px;
      --text-3xl: 22px;
      --text-4xl: 24px;
      --text-5xl: 28px;
    }
  }
}

.mfa-overlay[data-v-4ef8f16c] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}
.mfa-modal[data-v-4ef8f16c] {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
.mfa-modal[data-v-4ef8f16c] {
        background: #1c1c1e;
}
.mfa-header[data-v-4ef8f16c] {
        border-bottom-color: rgba(255, 255, 255, 0.08);
}
.mfa-steps[data-v-4ef8f16c] {
        background: #2c2c2e;
        border-color: rgba(255, 255, 255, 0.06);
}
.mfa-steps li[data-v-4ef8f16c] {
        color: #8e8e93;
}
.mfa-steps li.active[data-v-4ef8f16c] {
        color: #fff;
}
.mfa-steps li.done[data-v-4ef8f16c] {
        color: #34c759;
}
.step-num[data-v-4ef8f16c] {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
}
.mfa-steps li.active .step-num[data-v-4ef8f16c] {
        background: #0a84ff;
}
.mfa-steps li.done .step-num[data-v-4ef8f16c] {
        background: #34c759;
}
.mfa-hint[data-v-4ef8f16c] {
        color: #8e8e93;
}
.secret-row[data-v-4ef8f16c] {
        background: #2c2c2e;
        border-color: rgba(255, 255, 255, 0.08);
}
.secret-label[data-v-4ef8f16c] {
        color: #8e8e93;
}
.secret-code[data-v-4ef8f16c] {
        color: #e5e5ea;
}
.otp-input[data-v-4ef8f16c] {
        background: #2c2c2e;
        border-color: rgba(255, 255, 255, 0.12);
        color: #fff;
}
.otp-input[data-v-4ef8f16c]:focus {
        border-color: #0a84ff;
        box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}
.otp-input.error[data-v-4ef8f16c] {
        border-color: #ff453a;
}
.mfa-btn.ghost[data-v-4ef8f16c] {
        color: #8e8e93;
}
.mfa-btn.ghost[data-v-4ef8f16c]:hover {
        background: rgba(255, 255, 255, 0.06);
}
h2[data-v-4ef8f16c] {
        color: #fff;
}
.mfa-subtitle[data-v-4ef8f16c] {
        color: #8e8e93;
}
.mfa-close[data-v-4ef8f16c] {
        color: #8e8e93;
}
.mfa-close[data-v-4ef8f16c]:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
}
.mfa-icon-wrap[data-v-4ef8f16c] {
        background: rgba(10, 132, 255, 0.15);
        color: #0a84ff;
}
.copy-btn[data-v-4ef8f16c] {
        color: #8e8e93;
}
.copy-btn[data-v-4ef8f16c]:hover {
        background: rgba(255, 255, 255, 0.08);
}
.copy-btn.copied[data-v-4ef8f16c] {
        color: #34c759;
}
.qr-wrap[data-v-4ef8f16c] {
        background: #fff;
}
}
.mfa-header[data-v-4ef8f16c] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    position: relative;
}
.mfa-icon-wrap[data-v-4ef8f16c] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EBF2FF;
    color: #1A6FE8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mfa-header h2[data-v-4ef8f16c] {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    color: #111;
    line-height: 1.3;
}
.mfa-subtitle[data-v-4ef8f16c] {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.mfa-close[data-v-4ef8f16c] {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.mfa-close[data-v-4ef8f16c]:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Steps indicator */
.mfa-steps[data-v-4ef8f16c] {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    gap: 8px;
    background: #f9fafb;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    counter-reset: none;
}
.mfa-steps li[data-v-4ef8f16c] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    transition: color 0.2s;
}
.mfa-steps li.active[data-v-4ef8f16c] {
    color: #111;
}
.mfa-steps li.done[data-v-4ef8f16c] {
    color: #16a34a;
}
.mfa-steps li+li[data-v-4ef8f16c]::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
    margin-right: 2px;
}
.step-num[data-v-4ef8f16c] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.2s, color 0.2s;
}
.mfa-steps li.active .step-num[data-v-4ef8f16c] {
    background: #1A6FE8;
    color: #fff;
}
.mfa-steps li.done .step-num[data-v-4ef8f16c] {
    background: #16a34a;
    color: #fff;
}

/* Body */
.mfa-body[data-v-4ef8f16c] {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.qr-wrap[data-v-4ef8f16c] {
    width: 188px;
    height: 188px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.qr-img[data-v-4ef8f16c] {
    display: block;
    width: 180px;
    height: 180px;
}
.qr-placeholder[data-v-4ef8f16c] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}
.mfa-hint[data-v-4ef8f16c] {
    font-size: 13px;
    color: #6b7280;
    text-align: left;
    margin: 0;
    line-height: 1.55;
    width: 100%;
}
.mfa-hint.center[data-v-4ef8f16c] {
    text-align: center;
}
.mfa-hint strong[data-v-4ef8f16c] {
    color: #374151;
    font-weight: 600;
}
.secret-row[data-v-4ef8f16c] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
}
.secret-label[data-v-4ef8f16c] {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}
.secret-code[data-v-4ef8f16c] {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: #374151;
    letter-spacing: 0.05em;
    word-break: break-all;
}
.copy-btn[data-v-4ef8f16c] {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.copy-btn[data-v-4ef8f16c]:hover {
    background: #e5e7eb;
    color: #374151;
}
.copy-btn.copied[data-v-4ef8f16c] {
    color: #16a34a;
}

/* OTP inputs */
.otp-row[data-v-4ef8f16c] {
    display: flex;
    gap: 8px;
}
.otp-input[data-v-4ef8f16c] {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #111;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
}
.otp-input[data-v-4ef8f16c]:focus {
    border-color: #1A6FE8;
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.15);
}
.otp-input.error[data-v-4ef8f16c] {
    border-color: #dc2626;
}
.mfa-error[data-v-4ef8f16c] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #dc2626;
    margin: 0;
}

/* Buttons */
.mfa-btn[data-v-4ef8f16c] {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
}
.mfa-btn.primary[data-v-4ef8f16c] {
    background: #1A6FE8;
    color: #fff;
}
.mfa-btn.primary[data-v-4ef8f16c]:hover:not(:disabled) {
    background: #1560d4;
}
.mfa-btn.primary[data-v-4ef8f16c]:active:not(:disabled) {
    transform: scale(0.98);
}
.mfa-btn.primary[data-v-4ef8f16c]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.mfa-btn.ghost[data-v-4ef8f16c] {
    background: transparent;
    color: #6b7280;
}
.mfa-btn.ghost[data-v-4ef8f16c]:hover {
    background: #f3f4f6;
}
.spinner[data-v-4ef8f16c] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-4ef8f16c 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin-4ef8f16c {
to {
        transform: rotate(360deg);
}
}

/* Transition */
.mfa-fade-enter-active[data-v-4ef8f16c],
.mfa-fade-leave-active[data-v-4ef8f16c] {
    transition: opacity 0.2s ease;
}
.mfa-fade-enter-active .mfa-modal[data-v-4ef8f16c],
.mfa-fade-leave-active .mfa-modal[data-v-4ef8f16c] {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mfa-fade-enter-from[data-v-4ef8f16c],
.mfa-fade-leave-to[data-v-4ef8f16c] {
    opacity: 0;
}
.mfa-fade-enter-from .mfa-modal[data-v-4ef8f16c] {
    transform: scale(0.95) translateY(8px);
    opacity: 0;
}

.custom-toast[data-v-0377f575] {
    top: 5rem;
    right: 1.25rem;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background-color: hsla(152, 100%, 90%, 0.702) !important;
    border-color: #149a5bb3 !important;
    min-width: 320px;
    max-width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.316) !important;
}
.custom-toast.error[data-v-0377f575]{
    background-color: #ffdcd2 !important;
    border-color: #e1714e !important;
}
.toast-icon[data-v-0377f575] {
    width: 2.5rem;
    height: 2.5rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.511);
    background-color: hsla(152, 77%, 34%, 0.449);
    color: rgba(0, 121, 64, 0.7);
}
.toast-icon.error[data-v-0377f575]{
    background-color: #e1704e6c;
    color: #e1714e;
}
.toast-title[data-v-0377f575] {
    font-size: 0.9rem;
    color: #149a5bb3;
}
.toast-title.error[data-v-0377f575] {
    font-size: 0.9rem;
    color: #e1714e;
}
.toast-message[data-v-0377f575] {
    font-size: 12px;
    color: #64748b;
}
.toast-close-btn[data-v-0377f575] {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}
.toast-close-btn[data-v-0377f575]:hover {
    color: #64748b;
}
.toast-slide-enter-active[data-v-0377f575] {
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.toast-slide-leave-active[data-v-0377f575] {
    transition: all 0.3s ease-in;
}
.toast-slide-enter-from[data-v-0377f575] {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}
.toast-slide-leave-to[data-v-0377f575] {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
}

/* text animation */
.animated-text span[data-v-0377f575] {
    display: inline-block;
    animation: bounceDelay-0377f575 2s infinite;
}
@keyframes bounceDelay-0377f575 {
0%, 20%, 50%, 100% {
    transform: translateY(0);
}
10%, 30% {
    transform: translateY(-5px);
}
}

/* ── Backdrop ── */
.backdrop-enter-active[data-v-4bcc9879] {
  transition: opacity 0.3s ease;
}
.backdrop-leave-active[data-v-4bcc9879] {
  transition: opacity 0.25s ease;
}
.backdrop-enter-from[data-v-4bcc9879],
.backdrop-leave-to[data-v-4bcc9879] {
  opacity: 0;
}

/* ── Modal panel ── */
.modal-enter-active[data-v-4bcc9879] {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-leave-active[data-v-4bcc9879] {
  transition: opacity 0.22s ease-in,
    transform 0.22s ease-in;
}
.modal-enter-from[data-v-4bcc9879] {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}
.modal-leave-to[data-v-4bcc9879] {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
}

.error-modal[data-v-b816d840] {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}
.error-icon[data-v-b816d840] {
  display: flex;
  justify-content: center;
}
.icon-circle[data-v-b816d840] {
  width: 80px;
  height: 80px;
  background-color: #fef2f2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-text[data-v-b816d840] {
  font-size: 18px;
}
.text-danger[data-v-b816d840] {
  color: #ef4444 !important;
}
.btn-danger[data-v-b816d840] {
  background-color: #ef4444;
  border: none;
  border-radius: 12px;
  transition: all 0.2s;
}
.btn-danger[data-v-b816d840]:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}
