/* Manage My Team — authentication design system */
/* Premium appearance from the first browser paint */
html.mmt-auth-scope,
html.mmt-auth-scope body {
    background:
        radial-gradient(circle at 15% 15%, rgba(119, 75, 255, 0.12), transparent 34%),
        radial-gradient(circle at 85% 80%, rgba(200, 67, 255, 0.09), transparent 32%),
        #090a1a !important;

    color: #f8f8ff;
    min-height: 100%;
}

/* Do not animate the first page construction */
html.mmt-auth-scope:not(.mmt-auth-initialized) *,
html.mmt-auth-scope:not(.mmt-auth-initialized) *::before,
html.mmt-auth-scope:not(.mmt-auth-initialized) *::after {
    transition: none !important;
    animation-duration: 0s !important;
}

/* No full-page hiding or delayed reveal */
html.mmt-auth-scope body {
    opacity: 1 !important;
    visibility: visible !important;
}
html.mmt-auth-scope {
    --mmt-bg: #090a1a;
    --mmt-bg-soft: #0f1127;
    --mmt-surface: rgba(20, 22, 48, .76);
    --mmt-surface-solid: #141630;
    --mmt-surface-2: #1a1d3b;
    --mmt-text: #f8f8ff;
    --mmt-text-soft: #c3c6df;
    --mmt-muted: #8f94b6;
    --mmt-line: rgba(255,255,255,.09);
    --mmt-line-strong: rgba(255,255,255,.16);
    --mmt-purple: #775cff;
    --mmt-purple-2: #b44cff;
    --mmt-cyan: #20d5c2;
    --mmt-blue: #20a4ff;
    --mmt-pink: #ff5c8a;
    --mmt-orange: #ffad45;
    --mmt-green: #65df8d;
    --mmt-danger: #ff667a;
    --mmt-shadow: 0 34px 100px rgba(0,0,0,.38);
    --mmt-shadow-soft: 0 18px 60px rgba(0,0,0,.24);
    --mmt-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    color-scheme: dark;
    background: var(--mmt-bg);
}

html.mmt-auth-scope[data-mmt-theme="light"] {
    --mmt-bg: #f7f8ff;
    --mmt-bg-soft: #eef0fb;
    --mmt-surface: rgba(255,255,255,.84);
    --mmt-surface-solid: #ffffff;
    --mmt-surface-2: #f0f2fa;
    --mmt-text: #15162b;
    --mmt-text-soft: #3c405f;
    --mmt-muted: #6f7494;
    --mmt-line: rgba(22,26,62,.10);
    --mmt-line-strong: rgba(22,26,62,.18);
    --mmt-shadow: 0 34px 100px rgba(66,58,133,.18);
    --mmt-shadow-soft: 0 18px 60px rgba(66,58,133,.13);
    color-scheme: light;
}

html.mmt-auth-scope,
html.mmt-auth-scope body {
    min-width: 320px;
    min-height: 100%;
    margin: 0 !important;
    background: var(--mmt-bg) !important;
    color: var(--mmt-text) !important;
    font-family: var(--mmt-font) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html.mmt-auth-scope body.mmt-auth-ready {
    overflow-x: hidden;
}

html.mmt-auth-scope body.mmt-auth-ready > .mmt-auth-original-node {
    display: none !important;
}

html.mmt-auth-scope * { box-sizing: border-box; }
html.mmt-auth-scope a { text-decoration: none; }
html.mmt-auth-scope button,
html.mmt-auth-scope input,
html.mmt-auth-scope select,
html.mmt-auth-scope textarea { font-family: inherit; }

.mmt-auth-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 4% 0%, rgba(119,92,255,.22), transparent 34rem),
        radial-gradient(circle at 95% 12%, rgba(32,213,194,.13), transparent 34rem),
        radial-gradient(circle at 56% 115%, rgba(180,76,255,.13), transparent 38rem),
        var(--mmt-bg);
    color: var(--mmt-text);
}

.mmt-auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    pointer-events: none;
}

html[data-mmt-theme="light"] .mmt-auth-shell::before {
    background-image:
        linear-gradient(rgba(22,26,62,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,26,62,.035) 1px, transparent 1px);
}

.mmt-auth-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    opacity: .023;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.mmt-auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
    pointer-events: none;
    z-index: -1;
}
.mmt-auth-orb--one {
    width: 430px; height: 430px; top: 90px; left: -230px;
    background: radial-gradient(circle, rgba(119,92,255,.28), transparent 68%);
}
.mmt-auth-orb--two {
    width: 520px; height: 520px; right: -280px; bottom: -210px;
    background: radial-gradient(circle, rgba(32,213,194,.18), transparent 68%);
}

.mmt-auth-topbar {
    position: relative;
    z-index: 15;
    width: min(calc(100% - 48px), 1440px);
    height: 86px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mmt-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mmt-text) !important;
    flex: none;
}
.mmt-auth-brand img {
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 10px 24px rgba(119,92,255,.24));
}
.mmt-auth-brand span {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.035em;
    white-space: nowrap;
}
.mmt-auth-brand strong { font-weight: 850; }

.mmt-auth-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-inline-start: auto;
}
.mmt-auth-nav a {
    padding: 9px 13px;
    color: var(--mmt-text-soft) !important;
    font-size: 13px;
    font-weight: 750;
    border-radius: 10px;
    transition: color .2s, background .2s, transform .2s;
}
.mmt-auth-nav a:hover {
    color: var(--mmt-text) !important;
    background: rgba(255,255,255,.055);
    transform: translateY(-1px);
}
html[data-mmt-theme="light"] .mmt-auth-nav a:hover { background: rgba(22,26,62,.055); }

.mmt-auth-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}
.mmt-theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--mmt-text);
    background: rgba(255,255,255,.035);
    border: 1px solid var(--mmt-line);
    border-radius: 13px;
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
}
.mmt-theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--mmt-line-strong);
    background: rgba(255,255,255,.08);
}
html[data-mmt-theme="light"] .mmt-theme-toggle { background: rgba(22,26,62,.025); }
.mmt-theme-toggle svg { width: 19px; height: 19px; }
.mmt-theme-toggle .mmt-moon { display: none; }
html[data-mmt-theme="light"] .mmt-theme-toggle .mmt-sun { display: none; }
html[data-mmt-theme="light"] .mmt-theme-toggle .mmt-moon { display: block; }

.mmt-auth-demo-link {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 13px;
    font-weight: 850;
    border-radius: 13px;
    background: linear-gradient(115deg, var(--mmt-purple), #9a50ff 56%, #c64fe5);
    box-shadow: 0 13px 32px rgba(119,92,255,.27), inset 0 1px rgba(255,255,255,.25);
    transition: transform .2s, box-shadow .2s;
}
.mmt-auth-demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(119,92,255,.38), inset 0 1px rgba(255,255,255,.28);
}

.mmt-auth-stage {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), 1440px);
    min-height: calc(100vh - 86px);
    margin-inline: auto;
    padding: 28px 0 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    align-items: stretch;
    gap: 24px;
}

.mmt-auth-story,
.mmt-auth-formzone {
    position: relative;
    border: 1px solid var(--mmt-line);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--mmt-shadow);
}

.mmt-auth-story {
    min-height: 700px;
    padding: clamp(48px, 5.2vw, 82px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(119,92,255,.15), rgba(32,213,194,.05) 48%, rgba(255,92,138,.06)),
        color-mix(in srgb, var(--mmt-surface-solid) 82%, transparent);
}
.mmt-auth-story::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: -250px;
    right: -180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(180,76,255,.27), transparent 68%);
    pointer-events: none;
}
.mmt-auth-story::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.045), transparent 34%);
}

.mmt-auth-story-copy,
.mmt-product-window { position: relative; z-index: 1; }
.mmt-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--mmt-cyan);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.mmt-auth-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mmt-cyan);
    box-shadow: 0 0 0 6px rgba(32,213,194,.1), 0 0 26px rgba(32,213,194,.52);
}
html[dir="rtl"] .mmt-auth-eyebrow { letter-spacing: 0; }
.mmt-auth-story h1 {
    max-width: 800px;
    margin: 0 0 24px;
    color: var(--mmt-text);
    font-size: clamp(42px, 4.5vw, 74px);
    line-height: 1.04;
    letter-spacing: -.055em;
    font-weight: 850;
}
.mmt-auth-story h1 strong {
    color: transparent;
    background: linear-gradient(90deg, #a68bff 0%, #df63d7 45%, #36d5c5 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.mmt-auth-story-copy > p {
    max-width: 680px;
    margin: 0 0 30px;
    color: var(--mmt-text-soft);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.72;
}

.mmt-auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mmt-auth-benefit {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    color: var(--mmt-text-soft);
    font-size: 12px;
    font-weight: 720;
    border: 1px solid var(--mmt-line);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(12px);
}
html[data-mmt-theme="light"] .mmt-auth-benefit { background: rgba(255,255,255,.48); }
.mmt-auth-benefit svg { width: 15px; height: 15px; color: var(--mmt-green); }

.mmt-product-window {
    margin-top: 54px;
    padding: 16px;
    border: 1px solid var(--mmt-line-strong);
    border-radius: 25px;
    background: color-mix(in srgb, var(--mmt-bg) 72%, transparent);
    box-shadow: 0 24px 72px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
}
.mmt-product-window__top {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 4px 12px;
}
.mmt-product-window__dots { display: flex; gap: 6px; }
.mmt-product-window__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mmt-line-strong); }
.mmt-product-window__dots i:nth-child(1) { background: var(--mmt-pink); }
.mmt-product-window__dots i:nth-child(2) { background: var(--mmt-orange); }
.mmt-product-window__dots i:nth-child(3) { background: var(--mmt-green); }
.mmt-product-window__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mmt-muted);
    font-size: 10px;
    font-weight: 800;
}
.mmt-product-window__status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mmt-green);
    box-shadow: 0 0 16px rgba(101,223,141,.62);
}
.mmt-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.mmt-product-card {
    min-height: 100px;
    padding: 15px;
    border: 1px solid var(--mmt-line);
    border-radius: 17px;
    background: var(--mmt-surface);
}
.mmt-product-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--mmt-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mmt-product-card strong {
    display: block;
    color: var(--mmt-text);
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1;
}
.mmt-product-card small { display: block; margin-top: 9px; color: var(--mmt-green); font-size: 9px; font-weight: 800; }
.mmt-product-card--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
}
.mmt-mini-bars {
    height: 54px;
    display: flex;
    align-items: end;
    gap: 5px;
}
.mmt-mini-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(to top, var(--mmt-purple), var(--mmt-cyan));
    opacity: .86;
    animation: mmtBarPulse 4s ease-in-out infinite alternate;
}
.mmt-ai-card {
    background: linear-gradient(135deg, rgba(119,92,255,.13), rgba(32,213,194,.08));
}
.mmt-ai-card small { color: var(--mmt-cyan); }

.mmt-auth-formzone {
    min-height: 700px;
    padding: clamp(34px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: color-mix(in srgb, var(--mmt-surface-solid) 88%, transparent);
    backdrop-filter: blur(26px) saturate(125%);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
}
.mmt-auth-formzone::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    left: 50%;
    top: -190px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(119,92,255,.22), transparent 70%);
    pointer-events: none;
}
.mmt-auth-form-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    margin-inline: auto;
}
.mmt-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--mmt-cyan);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
html[dir="rtl"] .mmt-auth-kicker { letter-spacing: 0; }
.mmt-auth-form-title {
    margin: 0 0 9px !important;
    color: var(--mmt-text) !important;
    font-size: clamp(31px, 3vw, 43px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.045em !important;
    font-weight: 850 !important;
    text-align: start !important;
}
.mmt-auth-form-intro {
    margin: 0 0 28px;
    color: var(--mmt-text-soft);
    font-size: 14px;
    line-height: 1.65;
}

/* Neutralize the Bootstrap column/panel shell after the live form is moved. */
.mmt-auth-cluster,
.mmt-auth-cluster[class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.mmt-auth-cluster > h1,
.mmt-auth-cluster > h2,
.mmt-auth-cluster > h3 { display: none !important; }
.mmt-auth-cluster .panel_s,
.mmt-auth-cluster .panel,
.mmt-auth-cluster .card,
.mmt-auth-cluster .login-form {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.mmt-auth-cluster .panel-body,
.mmt-auth-cluster .card-body {
    padding: 0 !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.mmt-auth-cluster form { margin: 0 !important; }
.mmt-auth-cluster .form-group { margin-bottom: 18px !important; }
.mmt-auth-cluster label,
.mmt-auth-cluster .control-label {
    display: block;
    margin-bottom: 8px !important;
    color: var(--mmt-text-soft) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}
.mmt-auth-cluster .form-control,
.mmt-auth-cluster input[type="text"],
.mmt-auth-cluster input[type="email"],
.mmt-auth-cluster input[type="password"],
.mmt-auth-cluster input[type="tel"],
.mmt-auth-cluster select,
.mmt-auth-cluster textarea {
    width: 100% !important;
    min-height: 51px !important;
    padding: 12px 14px !important;
    color: var(--mmt-text) !important;
    caret-color: var(--mmt-cyan) !important;
    background: color-mix(in srgb, var(--mmt-bg-soft) 74%, transparent) !important;
    border: 1px solid var(--mmt-line-strong) !important;
    border-radius: 13px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
}
.mmt-auth-cluster select { appearance: auto; }
.mmt-auth-cluster textarea { min-height: 110px !important; resize: vertical; }
.mmt-auth-cluster .form-control::placeholder,
.mmt-auth-cluster input::placeholder,
.mmt-auth-cluster textarea::placeholder { color: var(--mmt-muted) !important; opacity: .72; }
.mmt-auth-cluster .form-control:focus,
.mmt-auth-cluster input:focus,
.mmt-auth-cluster select:focus,
.mmt-auth-cluster textarea:focus {
    border-color: rgba(119,92,255,.78) !important;
    box-shadow: 0 0 0 4px rgba(119,92,255,.13) !important;
    background: var(--mmt-surface-solid) !important;
}
.mmt-auth-cluster input:-webkit-autofill,
.mmt-auth-cluster input:-webkit-autofill:hover,
.mmt-auth-cluster input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--mmt-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--mmt-surface-solid) inset !important;
    transition: background-color 9999s ease-out !important;
}

.mmt-auth-cluster .checkbox,
.mmt-auth-cluster .radio,
.mmt-auth-cluster .checkbox-inline,
.mmt-auth-cluster .radio-inline {
    color: var(--mmt-text-soft) !important;
    font-size: 12px !important;
}
.mmt-auth-cluster input[type="checkbox"],
.mmt-auth-cluster input[type="radio"] {
    width: 17px !important;
    height: 17px !important;
    margin-top: 1px !important;
    accent-color: var(--mmt-purple);
}

.mmt-auth-cluster .btn,
.mmt-auth-cluster button[type="submit"],
.mmt-auth-cluster input[type="submit"] {
    width: 100% !important;
    min-height: 51px !important;
    margin-top: 6px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    color: var(--mmt-text) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    border: 1px solid var(--mmt-line-strong) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.025) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s !important;
}
.mmt-auth-cluster .btn:hover,
.mmt-auth-cluster button:hover { transform: translateY(-1px); border-color: rgba(119,92,255,.48) !important; }
.mmt-auth-cluster .btn-primary,
.mmt-auth-cluster button[type="submit"],
.mmt-auth-cluster input[type="submit"] {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(115deg, var(--mmt-purple), #9a50ff 56%, #c64fe5) !important;
    box-shadow: 0 14px 34px rgba(119,92,255,.27), inset 0 1px rgba(255,255,255,.24) !important;
}
.mmt-auth-cluster .btn-primary:hover,
.mmt-auth-cluster button[type="submit"]:hover,
.mmt-auth-cluster input[type="submit"]:hover {
    box-shadow: 0 18px 43px rgba(119,92,255,.38), inset 0 1px rgba(255,255,255,.28) !important;
}
.mmt-auth-cluster .btn-default,
.mmt-auth-cluster .btn-secondary {
    color: var(--mmt-text) !important;
    background: transparent !important;
}

.mmt-auth-cluster a:not(.btn) {
    color: var(--mmt-text-soft) !important;
    font-weight: 720;
    transition: color .2s;
}
.mmt-auth-cluster a:not(.btn):hover { color: var(--mmt-cyan) !important; }
.mmt-auth-cluster .text-center { color: var(--mmt-text-soft) !important; }
.mmt-auth-cluster hr { border-color: var(--mmt-line) !important; }
.mmt-auth-cluster .help-block,
.mmt-auth-cluster .text-muted,
.mmt-auth-cluster small { color: var(--mmt-muted) !important; }

.mmt-auth-cluster .alert {
    margin-bottom: 20px !important;
    padding: 13px 15px !important;
    color: var(--mmt-text) !important;
    border: 1px solid var(--mmt-line-strong) !important;
    border-radius: 13px !important;
    background: var(--mmt-surface-2) !important;
    box-shadow: none !important;
}
.mmt-auth-cluster .alert-danger { border-color: rgba(255,102,122,.4) !important; background: rgba(255,102,122,.09) !important; }
.mmt-auth-cluster .alert-success { border-color: rgba(101,223,141,.4) !important; background: rgba(101,223,141,.09) !important; }
.mmt-auth-cluster .has-error .form-control,
.mmt-auth-cluster .has-error input { border-color: rgba(255,102,122,.72) !important; }
.mmt-auth-cluster .has-error .help-block,
.mmt-auth-cluster .text-danger { color: var(--mmt-danger) !important; }

/* Common select libraries used by Perfex. */
.mmt-auth-cluster .select2-container { width: 100% !important; }
.mmt-auth-cluster .select2-container .select2-selection--single {
    height: 51px !important;
    color: var(--mmt-text) !important;
    background: color-mix(in srgb, var(--mmt-bg-soft) 74%, transparent) !important;
    border: 1px solid var(--mmt-line-strong) !important;
    border-radius: 13px !important;
}
.mmt-auth-cluster .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 49px !important;
    padding-inline: 14px 38px !important;
    color: var(--mmt-text) !important;
}
.mmt-auth-cluster .select2-container .select2-selection--single .select2-selection__arrow { height: 49px !important; }

.mmt-auth-trust {
    margin-top: 26px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mmt-muted);
    font-size: 10px;
    font-weight: 700;
    border-top: 1px solid var(--mmt-line);
}
.mmt-auth-trust svg { width: 14px; height: 14px; color: var(--mmt-green); }
.mmt-auth-footer {
    margin-top: 18px;
    color: var(--mmt-muted);
    font-size: 10px;
    text-align: center;
}
.mmt-auth-footer a { color: var(--mmt-text-soft) !important; }

.mmt-auth-mobile-copy { display: none; }

@keyframes mmtBarPulse {
    0% { opacity: .62; transform: scaleY(.92); transform-origin: bottom; }
    100% { opacity: .95; transform: scaleY(1); transform-origin: bottom; }
}

@media (max-width: 1120px) {
    .mmt-auth-stage { grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr); }
    .mmt-auth-story { padding: 50px; }
    .mmt-auth-story h1 { font-size: clamp(42px, 5.5vw, 61px); }
    .mmt-product-card--wide { grid-template-columns: minmax(0,1fr) 86px; }
}

@media (max-width: 900px) {
    .mmt-auth-topbar { width: min(calc(100% - 32px), 720px); height: 76px; }
    .mmt-auth-nav { display: none; }
    .mmt-auth-stage {
        width: min(calc(100% - 32px), 720px);
        min-height: calc(100vh - 76px);
        padding: 16px 0 32px;
        display: block;
    }
    .mmt-auth-story { display: none; }
    .mmt-auth-formzone { min-height: auto; padding: 40px; border-radius: 26px; }
    .mmt-auth-mobile-copy { display: block; margin-bottom: 26px; }
    .mmt-auth-mobile-copy h1 {
        margin: 0 0 10px;
        color: var(--mmt-text);
        font-size: clamp(32px, 8vw, 46px);
        line-height: 1.08;
        letter-spacing: -.05em;
        font-weight: 850;
    }
    .mmt-auth-mobile-copy h1 strong {
        color: transparent;
        background: linear-gradient(90deg, #a68bff, #df63d7 48%, #36d5c5);
        -webkit-background-clip: text;
        background-clip: text;
    }
    .mmt-auth-mobile-copy p { margin: 0; color: var(--mmt-text-soft); font-size: 14px; line-height: 1.65; }
}

@media (max-width: 560px) {
    .mmt-auth-topbar { width: min(calc(100% - 24px), 520px); }
    .mmt-auth-stage { width: min(calc(100% - 24px), 520px); }
    .mmt-auth-brand img { width: 40px; height: 40px; }
    .mmt-auth-brand span { display: none; }
    .mmt-auth-demo-link { min-height: 41px; padding-inline: 14px; font-size: 11px; }
    .mmt-theme-toggle { width: 41px; height: 41px; }
    .mmt-auth-formzone { padding: 29px 22px 28px; border-radius: 23px; }
    .mmt-auth-form-title { font-size: 31px !important; }
    .mmt-auth-form-intro { margin-bottom: 23px; }
    .mmt-auth-cluster .form-group { margin-bottom: 15px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .mmt-auth-shell *,
    .mmt-auth-shell *::before,
    .mmt-auth-shell *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* MMT authentication compatibility pass — Perfex customer theme overrides */
.mmt-auth-formzone .mmt-auth-cluster input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.mmt-auth-formzone .mmt-auth-cluster select,
.mmt-auth-formzone .mmt-auth-cluster textarea,
.mmt-auth-formzone .mmt-auth-cluster .form-control,
.mmt-auth-formzone .mmt-auth-cluster .select2-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.mmt-auth-formzone .mmt-auth-cluster input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.mmt-auth-formzone .mmt-auth-cluster select,
.mmt-auth-formzone .mmt-auth-cluster .form-control {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 15px !important;
    color: var(--mmt-text) !important;
    background-color: var(--mmt-surface-solid) !important;
    background-image: none !important;
    border: 1px solid var(--mmt-line-strong) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.03), inset 0 0 0 1px rgba(255,255,255,.01) !important;
    -webkit-appearance: none;
}

.mmt-auth-formzone .mmt-auth-cluster select {
    -webkit-appearance: auto !important;
    appearance: auto !important;
}

.mmt-auth-formzone .mmt-auth-cluster textarea {
    min-height: 118px !important;
    height: auto !important;
    padding: 14px 15px !important;
    color: var(--mmt-text) !important;
    background: var(--mmt-surface-solid) !important;
    border: 1px solid var(--mmt-line-strong) !important;
    border-radius: 14px !important;
}

.mmt-auth-formzone .mmt-auth-cluster input[type="checkbox"],
.mmt-auth-formzone .mmt-auth-cluster input[type="radio"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
}

.mmt-auth-formzone .mmt-auth-cluster .form-group,
.mmt-auth-formzone .mmt-auth-cluster .mbot15,
.mmt-auth-formzone .mmt-auth-cluster .mb-3 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
}

.mmt-auth-formzone .mmt-auth-cluster label,
.mmt-auth-formzone .mmt-auth-cluster .control-label {
    visibility: visible !important;
    opacity: 1 !important;
}

.mmt-auth-formzone .mmt-auth-cluster .btn-primary,
.mmt-auth-formzone .mmt-auth-cluster button[type="submit"],
.mmt-auth-formzone .mmt-auth-cluster input[type="submit"] {
    opacity: 1 !important;
    color: #fff !important;
    background: linear-gradient(115deg, #775cff, #9a50ff 56%, #c64fe5) !important;
}

/* Registration gets a wider, scroll-safe form surface. */
.mmt-auth-mode-register .mmt-auth-stage {
    grid-template-columns: minmax(420px, .88fr) minmax(610px, 1.12fr);
    align-items: start;
}
.mmt-auth-mode-register .mmt-auth-story,
.mmt-auth-mode-register .mmt-auth-formzone {
    min-height: calc(100vh - 134px);
}
.mmt-auth-mode-register .mmt-auth-formzone {
    justify-content: flex-start;
    overflow: visible;
}
.mmt-auth-mode-register .mmt-auth-form-inner {
    width: 100%;
    max-width: 760px;
}
.mmt-auth-mode-register .mmt-auth-cluster form .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin-inline: 0 !important;
}
.mmt-auth-mode-register .mmt-auth-cluster form .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    padding-inline: 0 !important;
}

/* The brand logo should always occupy its intended area even if the image fails. */
.mmt-auth-brand img {
    display: block !important;
    object-fit: contain;
}
.mmt-auth-brand img:not([src]),
.mmt-auth-brand img[src=""] {
    visibility: hidden;
}

@media (max-width: 1180px) {
    .mmt-auth-mode-register .mmt-auth-stage {
        grid-template-columns: minmax(360px, .82fr) minmax(540px, 1.18fr);
    }
}

@media (max-width: 900px) {
    .mmt-auth-mode-register .mmt-auth-stage { display: block; }
    .mmt-auth-mode-register .mmt-auth-cluster form .row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ===== MMT AUTH FINAL POLISH ===== */

/* logo visibility */
html.mmt-auth-scope .navbar-brand,
html.mmt-auth-scope .mmt-auth-brand,
html.mmt-auth-scope .mmt-auth-header .navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
}

html.mmt-auth-scope .navbar-brand img,
html.mmt-auth-scope .mmt-auth-brand img,
html.mmt-auth-scope .mmt-auth-header .navbar-brand img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* login language native select */
html.mmt-auth-scope select[name="language"],
html.mmt-auth-scope select#language {
    display: block !important;
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    border-radius: 18px !important;
    padding: 0 18px !important;
    margin: 0 0 24px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.04) !important;
    color: #eef2ff !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: auto !important;
}

/* better alignment for login fields */
html.mmt-auth-scope .mmt-auth-form .form-group,
html.mmt-auth-scope .authentication-form-wrapper .form-group,
html.mmt-auth-scope form .form-group {
    margin-bottom: 20px !important;
}

html.mmt-auth-scope .mmt-auth-form label,
html.mmt-auth-scope .authentication-form-wrapper label,
html.mmt-auth-scope form label {
    display: block !important;
    margin-bottom: 8px !important;
}

/* registration two-column layout on desktop */
@media (min-width: 1100px) {
    html.mmt-auth-scope form[action*="register"] .row,
    html.mmt-auth-scope .registration-form .row,
    html.mmt-auth-scope .register-page .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -14px !important;
        margin-right: -14px !important;
    }

    html.mmt-auth-scope form[action*="register"] .col-md-6,
    html.mmt-auth-scope form[action*="register"] .col-sm-6,
    html.mmt-auth-scope form[action*="register"] .col-lg-6,
    html.mmt-auth-scope .registration-form .col-md-6,
    html.mmt-auth-scope .registration-form .col-sm-6,
    html.mmt-auth-scope .registration-form .col-lg-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    html.mmt-auth-scope form[action*="register"] .col-md-12,
    html.mmt-auth-scope form[action*="register"] .col-sm-12,
    html.mmt-auth-scope form[action*="register"] .col-lg-12,
    html.mmt-auth-scope .registration-form .col-md-12,
    html.mmt-auth-scope .registration-form .col-sm-12,
    html.mmt-auth-scope .registration-form .col-lg-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* mobile fallback */
@media (max-width: 1099px) {
    html.mmt-auth-scope form[action*="register"] .col-md-6,
    html.mmt-auth-scope form[action*="register"] .col-sm-6,
    html.mmt-auth-scope form[action*="register"] .col-lg-6,
    html.mmt-auth-scope .registration-form .col-md-6,
    html.mmt-auth-scope .registration-form .col-sm-6,
    html.mmt-auth-scope .registration-form .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}
/* =========================================================
   MMT AUTH — Registration grid and language alignment fix
   ========================================================= */

/* One clean language selector only */
html.mmt-auth-scope .mmt-language-field {
    width: 100% !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

html.mmt-auth-scope .mmt-language-field > label {
    display: block !important;
    margin: 0 0 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Hide Bootstrap/Select2 duplicates */
html.mmt-auth-scope .mmt-language-field .bootstrap-select,
html.mmt-auth-scope .mmt-language-field .select2-container,
html.mmt-auth-scope .mmt-language-field .dropdown.bootstrap-select {
    display: none !important;
}

/* Restore the real select */
html.mmt-auth-scope .mmt-language-field select {
    display: block !important;
    position: static !important;
    inset: auto !important;
    float: none !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    min-height: 56px !important;

    margin: 0 !important;
    padding: 0 48px 0 18px !important;

    opacity: 1 !important;
    visibility: visible !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;

    color: #f5f7ff !important;
    background-color: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    outline: none !important;

    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
}

/* Registration: two equal, top-aligned columns */
html.mmt-auth-scope .mmt-register-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 32px !important;
    width: 100% !important;
    margin: 24px 0 0 !important;
}

html.mmt-auth-scope .mmt-register-grid > .mmt-register-column {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.mmt-auth-scope .mmt-register-column h3,
html.mmt-auth-scope .mmt-register-column h4,
html.mmt-auth-scope .mmt-register-column .tw-font-semibold {
    min-height: 44px !important;
    margin: 0 0 18px !important;
    line-height: 1.15 !important;
}

/* Uniform registration fields */
html.mmt-auth-scope .mmt-register-column .form-group {
    width: 100% !important;
    margin: 0 0 17px !important;
}

html.mmt-auth-scope .mmt-register-column input,
html.mmt-auth-scope .mmt-register-column select,
html.mmt-auth-scope .mmt-register-column textarea {
    width: 100% !important;
    max-width: 100% !important;
}

/* Full-width elements under both columns */
html.mmt-auth-scope .mmt-register-grid > .mmt-register-full {
    grid-column: 1 / -1 !important;
}

/* Light appearance */
html.mmt-auth-scope[data-mmt-theme="light"]
.mmt-language-field select,
html.mmt-auth-scope.mmt-theme-light
.mmt-language-field select {
    color: #182039 !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(53, 62, 96, 0.16) !important;
}

/* Responsive registration */
@media (max-width: 1050px) {
    html.mmt-auth-scope .mmt-register-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}
/* Registration country field full-width single line */
html.mmt-auth-scope .register-country-group {
    display: block !important;
    width: 100% !important;
    grid-column: 1 / -1;
    margin-bottom: 24px !important;
}

html.mmt-auth-scope .register-country-group label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

html.mmt-auth-scope .register-country-group select.form-control {
    display: block !important;
    width: 100% !important;
    height: 56px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.18);
    color: #f5f7ff;
    padding: 0 18px;
    appearance: auto;
}

html.mmt-auth-scope .register-country-group .bootstrap-select,
html.mmt-auth-scope .register-country-group .dropdown-toggle {
    width: 100% !important;
}
/* Remove white footer behind registration button */
html.mmt-auth-scope .mmt-register-panel .panel-footer,
html.mmt-auth-scope #register-form .panel-footer,
html.mmt-auth-scope .mmt-auth-cluster .panel-footer {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    padding: 24px 0 0 !important;
    margin: 0 !important;
}

/* Keep register button full width */
html.mmt-auth-scope #register-form .panel-footer .btn,
html.mmt-auth-scope #register-form .panel-footer button[type="submit"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* =========================================================
   MMT GLOBAL UI V1 — authentication first-paint protection
   The legacy Perfex authentication DOM is never painted.
   ========================================================= */
html.mmt-auth-scope {
    min-height: 100%;
    background: #090a1a !important;
}

html.mmt-auth-scope.mmt-auth-prepaint body > * {
    visibility: hidden !important;
}

html.mmt-auth-scope.mmt-auth-prepaint::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: block;
    background:
        radial-gradient(circle at 15% 10%, rgba(119,92,255,.22), transparent 34rem),
        radial-gradient(circle at 88% 85%, rgba(32,213,194,.13), transparent 34rem),
        #090a1a;
}

html.mmt-auth-scope.mmt-auth-prepaint::after {
    content: "Manage My Team";
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 2147483647;
    transform: translate(-50%, -50%);
    padding-top: 104px;
    min-width: 220px;
    min-height: 82px;
    color: rgba(248,248,255,.88);
    background: url("/assets/mmt-logo.svg") center top / 76px 76px no-repeat;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .01em;
    text-align: center;
    white-space: nowrap;
}

html.mmt-auth-scope.mmt-auth-prepaint.mmt-load-slow::after {
    content: "Manage My Team\A Loading is taking longer than expected…";
    white-space: pre;
}

html.mmt-auth-scope.mmt-auth-initialized body > * {
    visibility: visible !important;
}

html.mmt-auth-scope.mmt-auth-initialized::before,
html.mmt-auth-scope.mmt-auth-initialized::after {
    display: none !important;
    content: none !important;
}


/* MMT-AUTH-LOGIN-INNER-SHELL-HF1 START */

/*
 * The premium .mmt-auth-formzone is the only visual card.
 * Remove the secondary Perfex/customer-theme surface around
 * the actual authentication form.
 */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.authentication-form-wrapper,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
form,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.login-form,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.panel_s,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.panel,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.panel-body,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.card,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.card-body {

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    outline: 0 !important;

    border-radius: 0 !important;

    box-shadow: none !important;
    -webkit-box-shadow: none !important;

    filter: none !important;
}


/* Authentication form itself carries no card chrome. */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
form,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.authentication-form-wrapper {

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Prevent pseudo-elements from recreating a pale overlay. */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
form::before,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
form::after,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.authentication-form-wrapper::before,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.authentication-form-wrapper::after {

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    box-shadow: none !important;
}


/* Dark-theme assurance: no white inner authentication box. */

html[data-mmt-theme="dark"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster,

html[data-mmt-theme="dark"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
form,

html[data-mmt-theme="dark"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.authentication-form-wrapper {

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}


/* Light-theme assurance: no gray inner authentication box. */

html[data-mmt-theme="light"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster,

html[data-mmt-theme="light"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
form,

html[data-mmt-theme="light"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-formzone
.mmt-auth-cluster
.authentication-form-wrapper {

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* MMT-AUTH-LOGIN-INNER-SHELL-HF1 END */

/* MMT-AUTH-REMEMBER-CHECKBOX-HF1 START */

/*
 * Keep the real checkbox functional but visually hide it.
 * The label/theme checkbox remains the only visible control.
 */
html.mmt-auth-scope .login_remember,
html.mmt-auth-scope input[type="checkbox"][name="remember"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*
 * Align the visible custom checkbox with the label text.
 */
html.mmt-auth-scope .checkbox label,
html.mmt-auth-scope .remember-me label,
html.mmt-auth-scope label[for="remember"] {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
}

/* MMT-AUTH-REMEMBER-CHECKBOX-HF1 END */

/* MMT-AUTH-LOGIN-LANGUAGE-SWITCH-HF1 START */

/*
 * Public customer login only:
 * retire the large Language input and expose
 * English / Arabic as a compact premium switch.
 */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-form-inner {
    position: relative !important;
}


/* Real Perfex select remains functional but not visible. */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-login-native-language {
    display: none !important;
}


/* Compact bilingual switch */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-switch {

    position: absolute !important;

    top: 28px !important;
    inset-inline-end: 30px !important;

    z-index: 5;

    display: inline-flex !important;
    align-items: center !important;

    gap: 3px !important;

    padding: 3px !important;

    border:
        1px solid rgba(111,86,220,.13) !important;

    border-radius: 12px !important;

    background:
        rgba(247,247,253,.82) !important;

    box-shadow:
        0 4px 14px rgba(27,29,45,.04) !important;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option {

    appearance: none !important;
    -webkit-appearance: none !important;

    min-width: 38px !important;
    height: 30px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: transparent !important;

    color: #777b91 !important;

    font-size: 10px !important;
    font-weight: 750 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    box-shadow: none !important;
}


html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option[data-lang="ar"] {

    min-width: 54px !important;

    font-family:
        Tahoma,
        Arial,
        sans-serif !important;
}


html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option.is-active {

    background:
        linear-gradient(
            135deg,
            #7456ff 0%,
            #a74cea 100%
        ) !important;

    color: #fff !important;

    box-shadow:
        0 4px 10px rgba(116,86,255,.18) !important;
}


html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option:not(.is-active):hover {

    background:
        rgba(113,78,238,.06) !important;

    color: #684bd5 !important;
}


/* Dark theme */

html[data-mmt-theme="dark"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-switch {

    border-color:
        rgba(255,255,255,.09) !important;

    background:
        rgba(255,255,255,.045) !important;

    box-shadow:
        0 5px 18px rgba(0,0,0,.12) !important;
}


html[data-mmt-theme="dark"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option {

    color: #aeb3ce !important;
}


html[data-mmt-theme="dark"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option.is-active {

    color: #fff !important;
}


/* Mobile */

@media (max-width: 700px) {

    html.mmt-auth-scope
    .mmt-auth-mode-login
    .mmt-auth-language-switch {

        position: static !important;

        width: max-content !important;

        margin:
            0 0 16px auto !important;
    }
}

/* MMT-AUTH-LOGIN-LANGUAGE-SWITCH-HF1 END */

/* MMT-AUTH-LOGIN-UX-HF2 START */

/* =========================================================
   Remember me — one real, visible checkbox
   ========================================================= */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-remember-row {

    display: flex !important;
    align-items: center !important;

    gap: 9px !important;

    min-height: 26px !important;

    margin-top: 2px !important;
    margin-bottom: 18px !important;
}


/*
 * Restore the actual functional checkbox.
 * Overrides the earlier visually-hidden rule.
 */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-remember-row
input[type="checkbox"] {

    position: relative !important;

    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    flex: 0 0 18px !important;

    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    clip: auto !important;
    clip-path: none !important;

    white-space: normal !important;

    border: 1px solid var(--mmt-line-strong) !important;
    border-radius: 5px !important;

    appearance: auto !important;
    -webkit-appearance: checkbox !important;

    accent-color: var(--mmt-purple) !important;

    cursor: pointer !important;
}


/*
 * We use the native checkbox, so suppress any second
 * pseudo-element checkbox supplied by Perfex/theme CSS.
 */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-remember-row
label::before,

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-remember-row
label::after {

    display: none !important;

    content: none !important;

    width: 0 !important;
    height: 0 !important;

    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}


html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-remember-row
label {

    display: inline-flex !important;
    align-items: center !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--mmt-text-soft) !important;

    font-size: 11px !important;
    font-weight: 750 !important;

    line-height: 1.25 !important;

    cursor: pointer !important;
}


/* RTL keeps checkbox naturally beside the text. */

html[dir="rtl"].mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-remember-row {

    flex-direction: row !important;
}


/* =========================================================
   Live EN / AR switch
   ========================================================= */

/*
 * Small visual feedback only.
 * No page reload and therefore no form-data loss.
 */

html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-switch {

    user-select: none !important;
}


html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option {

    transition:
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        transform .16s ease !important;
}


html.mmt-auth-scope
.mmt-auth-mode-login
.mmt-auth-language-option:active {

    transform: scale(.97) !important;
}

/* MMT-AUTH-LOGIN-UX-HF2 END */
