/**
 * Meetlet Smart Pass — Fluent 2 login / signup (plugin pages only).
 * Scoped with .meetlet-sp and body.path-auth-meetletsmartpass so core /login/index.php is untouched.
 */

/* -------------------------------------------------------------------------- */
/* Page chrome — plugin login layout only                                     */
/* -------------------------------------------------------------------------- */

body.path-auth-meetletsmartpass.pagelayout-login #page {
    --ms-brand: #0f6cbd;
    margin: 0;
    min-height: 100vh;
    background-color: #eef3f9;
    background-image:
        radial-gradient(ellipse 70% 55% at 8% 12%, rgba(15, 108, 189, 0.22), transparent 58%),
        radial-gradient(ellipse 55% 45% at 92% 8%, rgba(62, 190, 235, 0.18), transparent 52%),
        radial-gradient(ellipse 45% 40% at 88% 88%, rgba(139, 74, 142, 0.1), transparent 55%),
        radial-gradient(ellipse 40% 35% at 12% 92%, rgba(238, 84, 48, 0.07), transparent 50%);
    overflow-x: hidden;
}

body.path-auth-meetletsmartpass.pagelayout-login #page::before,
body.path-auth-meetletsmartpass.pagelayout-login #page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(8px);
    animation: meetlet-sp-orb 22s ease-in-out infinite;
}

body.path-auth-meetletsmartpass.pagelayout-login #page::before {
    width: min(52vw, 28rem);
    height: min(52vw, 28rem);
    inset-block-start: -8%;
    inset-inline-end: -6%;
    background: radial-gradient(circle at 40% 40%, rgba(15, 108, 189, 0.28), rgba(15, 108, 189, 0));
}

body.path-auth-meetletsmartpass.pagelayout-login #page::after {
    width: min(42vw, 22rem);
    height: min(42vw, 22rem);
    inset-block-end: -10%;
    inset-inline-start: -8%;
    background: radial-gradient(circle at 60% 60%, rgba(62, 190, 235, 0.22), rgba(62, 190, 235, 0));
    animation-delay: -8s;
}

body.path-auth-meetletsmartpass.pagelayout-login .login-layout-left {
    display: none !important;
}

body.path-auth-meetletsmartpass.pagelayout-login #page-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

body.path-auth-meetletsmartpass.pagelayout-login .login-layout-right,
body.path-auth-meetletsmartpass.pagelayout-login #region-main {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: transparent;
}

body.path-auth-meetletsmartpass.pagelayout-login .login-layout-right-content,
body.path-auth-meetletsmartpass.pagelayout-login #region-main-box,
body.path-auth-meetletsmartpass.pagelayout-login .login-container {
    width: 100%;
    max-width: 28.5rem;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* Shell + tokens                                                             */
/* -------------------------------------------------------------------------- */

.meetlet-sp {
    --ms-brand: #0f6cbd;
    --ms-brand-hover: #115ea3;
    --ms-brand-press: #0c3b5e;
    --ms-brand-soft: #e6f2fb;
    --ms-brand-glow: rgba(15, 108, 189, 0.2);
    --ms-accent: #f0b429;
    --ms-accent-hover: #dfa01a;
    --ms-accent-press: #c78c12;
    --ms-accent-glow: rgba(240, 180, 41, 0.35);
    --ms-text: #242424;
    --ms-text-2: #4f4f4f;
    --ms-stroke: #c8c8c8;
    --ms-stroke-2: #e0e0e0;
    --ms-surface: #ffffff;
    --ms-page: #eef3f9;
    --ms-error: #c50f1f;
    --ms-error-bg: #fdf3f4;
    --ms-radius: 8px;
    --ms-radius-card: 12px;
    --ms-font: "Segoe UI Variable Text", "Segoe UI", Tahoma, Arial, sans-serif;
    --ms-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.1);
    --ms-ease: cubic-bezier(0.33, 1, 0.68, 1);

    box-sizing: border-box;
    font-family: var(--ms-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ms-text);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    display: flex;
    justify-content: center;
    width: 100%;
}

.meetlet-sp *,
.meetlet-sp *::before,
.meetlet-sp *::after {
    box-sizing: border-box;
}

.meetlet-sp-shell {
    width: min(100%, 26.5rem);
}

.meetlet-sp-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: min(100%, 220px);
    margin: 0 auto 1.25rem;
    object-fit: contain;
    animation: meetlet-sp-fade 0.55s var(--ms-ease) both;
}

.meetlet-sp-card {
    position: relative;
    width: 100%;
    background: var(--ms-surface);
    border: 1px solid rgba(36, 36, 36, 0.08);
    border-radius: var(--ms-radius-card);
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: var(--ms-shadow);
    animation: meetlet-sp-card-in 0.55s var(--ms-ease) both;
    overflow: hidden;
}

.meetlet-sp-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #0f6cbd 0%, #3ebeeb 42%, #d35148 78%, #f7a10e 100%);
    pointer-events: none;
}

.meetlet-sp-header {
    margin-bottom: 1.5rem;
}

.meetlet-sp-langswitch {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.9rem;
}

.meetlet-sp-langselect {
    appearance: none;
    -webkit-appearance: none;
    max-width: 100%;
    min-width: 8.5rem;
    height: 2rem;
    padding: 0 1.85rem 0 0.7rem;
    border: 1px solid var(--ms-stroke);
    border-radius: var(--ms-radius);
    background-color: var(--ms-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234f4f4f' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 10px 7px;
    color: var(--ms-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

[dir="rtl"] .meetlet-sp-langselect {
    padding: 0 0.7rem 0 1.85rem;
    background-position: left 0.65rem center;
}

.meetlet-sp-langselect:hover {
    border-color: var(--ms-brand);
    background-color: var(--ms-brand-soft);
}

.meetlet-sp-langselect:focus-visible {
    outline: none;
    border-color: var(--ms-brand);
    box-shadow: 0 0 0 3px var(--ms-brand-glow);
}

.meetlet-sp .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.meetlet-sp-title {
    margin: 0 0 0.35rem;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: -0.02em;
    color: var(--ms-text);
}

.meetlet-sp-sub {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    color: var(--ms-text-2);
}

/* -------------------------------------------------------------------------- */
/* Flow progress bar                                                          */
/* -------------------------------------------------------------------------- */

.meetlet-sp-progress {
    margin: 0 0 1.25rem;
    padding: 0.85rem 0.75rem 0.65rem;
    border-radius: var(--ms-radius);
    background: var(--ms-surface-2, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--ms-border, rgba(0, 0, 0, 0.08));
}

.meetlet-sp-progress__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meetlet-sp-progress__item {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 3.5rem;
    position: relative;
    text-align: center;
}

.meetlet-sp-progress__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.55rem;
    inset-inline-start: calc(50% + 0.55rem);
    width: calc(100% - 1.1rem);
    height: 2px;
    background: var(--ms-border, rgba(0, 0, 0, 0.12));
    z-index: 0;
}

.meetlet-sp-progress__item.is-done:not(:last-child)::after {
    background: var(--ms-accent, #0f6cbd);
}

.meetlet-sp-progress__dot {
    position: relative;
    z-index: 1;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid var(--ms-border, rgba(0, 0, 0, 0.18));
    background: var(--ms-card, #fff);
    box-sizing: border-box;
}

.meetlet-sp-progress__item.is-done .meetlet-sp-progress__dot {
    border-color: var(--ms-accent, #0f6cbd);
    background: var(--ms-accent, #0f6cbd);
}

.meetlet-sp-progress__item.is-done .meetlet-sp-progress__dot::after {
    content: "";
    display: block;
    width: 0.35rem;
    height: 0.6rem;
    margin: 0.08rem auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.meetlet-sp-progress__item.is-current .meetlet-sp-progress__dot {
    border-color: var(--ms-accent, #0f6cbd);
    box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.18);
}

.meetlet-sp-progress__label {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--ms-text-2);
    max-width: 5.5rem;
}

.meetlet-sp-progress__item.is-current .meetlet-sp-progress__label {
    color: var(--ms-accent, #0f6cbd);
}

.meetlet-sp-progress__item.is-done .meetlet-sp-progress__label {
    color: var(--ms-text);
}

@media (max-width: 480px) {
    .meetlet-sp-progress__label {
        font-size: 10px;
        max-width: 4.25rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Alert                                                                      */
/* -------------------------------------------------------------------------- */

.meetlet-sp-alert {
    margin-bottom: 1.15rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--ms-radius);
    border-inline-start: 3px solid var(--ms-brand);
    background: var(--ms-brand-soft);
    font-size: 15px;
    line-height: 1.45;
    color: var(--ms-text);
}

.meetlet-sp-alert.is-error {
    border-inline-start-color: var(--ms-error);
    background: var(--ms-error-bg);
    color: var(--ms-error);
}

.meetlet-sp-alert.is-error:not([hidden]) {
    animation: meetlet-sp-shake 0.45s ease;
}

.meetlet-sp:has(.meetlet-sp-alert.is-error:not([hidden])) .meetlet-sp-form:not([hidden]) .meetlet-sp-input,
.meetlet-sp:has(.meetlet-sp-alert.is-error:not([hidden])) .meetlet-sp-form:not([hidden]) .meetlet-sp-digit {
    border-color: var(--ms-error);
}

/* -------------------------------------------------------------------------- */
/* Form controls                                                              */
/* -------------------------------------------------------------------------- */

.meetlet-sp-form {
    position: relative;
}

.meetlet-sp-step:not([hidden]) {
    animation: meetlet-sp-step-in 0.4s var(--ms-ease) both;
}

#meetlet-sp-step-identifier:not([hidden]) {
    animation: none;
}

.meetlet-sp-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    margin: 0 0 0.4rem;
}

/* Required asterisk via ::after — avoids Tahoma/RTL rendering * as a cross. */
.meetlet-sp-label:has(+ .meetlet-sp-input[required])::after,
.meetlet-sp-label:has(+ select.meetlet-sp-input[required])::after,
.meetlet-sp-label:has(+ textarea.meetlet-sp-input[required])::after,
.meetlet-sp-check:has(> input[required]) > span::after,
.meetlet-sp-required::after {
    content: "\002A";
    color: var(--ms-error);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1;
    direction: ltr;
    unicode-bidi: isolate;
    margin-inline-start: 0.2em;
}

.meetlet-sp-form > .meetlet-sp-input + .meetlet-sp-label,
.meetlet-sp-form > select.meetlet-sp-input + .meetlet-sp-label,
.meetlet-sp-form > textarea.meetlet-sp-input + .meetlet-sp-label,
.meetlet-sp-form > .meetlet-sp-check + .meetlet-sp-label {
    margin-top: 1.15rem;
}

.meetlet-sp-input,
.meetlet-sp-digit {
    border: 1px solid var(--ms-stroke);
    border-radius: var(--ms-radius);
    background: var(--ms-surface);
    color: var(--ms-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s var(--ms-ease);
}

.meetlet-sp-input {
    display: block;
    width: 100%;
    height: 44px;
    margin-bottom: 0.25rem;
    padding: 0 14px;
}

textarea.meetlet-sp-input {
    height: auto;
    min-height: 5.5rem;
    padding: 12px 14px;
    resize: vertical;
}

select.meetlet-sp-input {
    height: 44px;
    width: 100%;
    cursor: pointer;
    padding-inline-end: 2rem;
}

.meetlet-sp-input:hover,
.meetlet-sp-digit:hover {
    border-color: #616161;
}

.meetlet-sp-input:focus,
.meetlet-sp-digit:focus {
    outline: none;
    border-color: var(--ms-brand);
    box-shadow: 0 0 0 1px var(--ms-brand), 0 0 0 4px var(--ms-brand-glow);
}

.meetlet-sp-digit:focus {
    transform: translateY(-1px);
}

.meetlet-sp-pick {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 0 1.15rem;
    max-height: 18rem;
    overflow-y: auto;
}

.meetlet-sp-pick-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    border: 1px solid var(--ms-stroke);
    border-radius: 10px;
    background: var(--ms-surface);
}

.meetlet-sp-pick-item input {
    margin-top: 0.2rem;
    accent-color: var(--ms-brand);
}

.meetlet-sp-pick-item__name {
    display: block;
    font-weight: 600;
}

.meetlet-sp-pick-item__user,
.meetlet-sp-pick-item__email {
    display: block;
    font-size: 14px;
    color: var(--ms-text-2);
    direction: ltr;
    text-align: start;
}

.meetlet-sp-pick-item__email {
    font-size: 12px;
}

.meetlet-sp-pick-item:has(input:checked) {
    border-color: var(--ms-brand);
    box-shadow: 0 0 0 1px var(--ms-brand);
    background: var(--ms-brand-soft);
}

.meetlet-sp-hint {
    margin: 0 0 1.1rem;
    font-size: 15px;
    line-height: 22px;
    color: var(--ms-text-2);
}

.meetlet-sp-notice {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 14px;
    line-height: 21px;
    color: var(--ms-text-2);
    background: var(--ms-brand-soft, rgba(15, 108, 189, 0.08));
    border-inline-start: 3px solid var(--ms-brand);
    border-radius: 4px;
}

.meetlet-sp-assist {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* -------------------------------------------------------------------------- */
/* OTP                                                                        */
/* -------------------------------------------------------------------------- */

.meetlet-sp-otp {
    display: flex;
    gap: 0.55rem;
    justify-content: space-between;
    margin: 0 0 1.15rem;
}

.meetlet-sp-digit {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    caret-color: var(--ms-brand);
}

/* -------------------------------------------------------------------------- */
/* Remember-me / channels                                                     */
/* -------------------------------------------------------------------------- */

.meetlet-sp-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0 0.25rem;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
}

.meetlet-sp-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--ms-brand);
}

.meetlet-sp-channels {
    border: 0;
    margin: 1.15rem 0 0.35rem;
    padding: 0;
    /* Block layout: fieldset+legend as flex/grid children still staggers in Chromium. */
    display: block;
    min-inline-size: 0;
}

.meetlet-sp-channels > legend,
.meetlet-sp-channels__legend {
    display: block;
    float: none;
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.65rem;
    padding: 0;
    box-sizing: border-box;
}

.meetlet-sp-channels .meetlet-sp-hint {
    margin: 0 0 0.65rem;
}

.meetlet-sp-channels__options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    clear: both;
}

.meetlet-sp-methods {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin: 0.35rem 0 0.75rem;
}

.meetlet-sp-methods .meetlet-sp-btn {
    width: 100%;
}

.meetlet-sp-channel {
    position: relative;
    display: flex;
    flex: 1 1 6.75rem;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin: 0;
    min-width: 6.75rem;
    min-height: 3.1rem;
    padding: 0.7rem 0.85rem;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
    border: 1px solid var(--ms-stroke);
    border-radius: 10px;
    background: var(--ms-surface);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s var(--ms-ease);
}

.meetlet-sp-channel input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.meetlet-sp-channel:hover {
    border-color: #616161;
}

.meetlet-sp-channel:has(input:focus-visible) {
    box-shadow: 0 0 0 1px var(--ms-brand), 0 0 0 4px var(--ms-brand-glow);
}

.meetlet-sp-channel:has(input:checked) {
    border-color: var(--ms-brand);
    box-shadow: 0 0 0 1px var(--ms-brand);
    background: var(--ms-brand-soft);
}

.meetlet-sp-channel__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex: 0 0 auto;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    box-shadow: none;
}

.meetlet-sp-channel__icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 8px;
}

.meetlet-sp-channel__text {
    min-width: 0;
    flex: 1 1 auto;
}

/* -------------------------------------------------------------------------- */
/* Buttons / links                                                            */
/* -------------------------------------------------------------------------- */

.meetlet-sp-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
}

.meetlet-sp-btn__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.meetlet-sp-btn__label {
    line-height: 1.2;
}

.meetlet-sp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    height: 44px;
    margin-top: 1.15rem;
    padding: 0 1rem;
    border: none;
    border-radius: var(--ms-radius);
    background: var(--ms-brand);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.meetlet-sp-btn:hover:not(:disabled):not(.is-busy) {
    background: var(--ms-brand-hover);
    box-shadow: 0 6px 16px rgba(15, 108, 189, 0.28);
}

.meetlet-sp-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px var(--ms-brand), 0 0 0 4px var(--ms-brand-glow);
}

.meetlet-sp-btn:active:not(:disabled):not(.is-busy) {
    transform: scale(0.985);
    background: var(--ms-brand-press);
    box-shadow: none;
}

.meetlet-sp-btn:disabled,
.meetlet-sp-btn.is-busy {
    opacity: 0.72;
    cursor: default;
}

.meetlet-sp-btn.is-busy {
    color: transparent;
}

.meetlet-sp-btn.is-busy::after {
    content: "";
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: meetlet-sp-spin 0.7s linear infinite;
}

.meetlet-sp-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    margin-top: 1.15rem;
}

.meetlet-sp-actions .meetlet-sp-btn {
    width: 100%;
    margin-top: 0;
}

.meetlet-sp-btn-secondary {
    background: #fff;
    color: var(--ms-brand);
    box-shadow: inset 0 0 0 1px var(--ms-brand);
}

.meetlet-sp-btn-secondary:hover:not(:disabled):not(.is-busy) {
    background: var(--ms-brand-soft);
    color: var(--ms-brand-hover);
    box-shadow: inset 0 0 0 1px var(--ms-brand-hover);
}

.meetlet-sp-btn-secondary:focus-visible {
    box-shadow: inset 0 0 0 1px var(--ms-brand), 0 0 0 4px var(--ms-brand-glow);
}

.meetlet-sp-btn-secondary:active:not(:disabled):not(.is-busy) {
    background: #d6e8f6;
    box-shadow: inset 0 0 0 1px var(--ms-brand-press);
}

.meetlet-sp-btn-secondary.is-busy::after {
    border-color: rgba(15, 108, 189, 0.25);
    border-top-color: var(--ms-brand);
}

[dir="rtl"] .meetlet-sp-btn__icon--return svg {
    transform: scaleX(-1);
}

.meetlet-sp-btn-subtle {
    width: auto;
    min-height: 40px;
    height: auto;
    margin-top: 0;
    padding: 0.45rem 0.7rem;
    background: transparent;
    color: var(--ms-brand);
    font-weight: 600;
    font-size: 15px;
    box-shadow: none;
}

.meetlet-sp-btn-subtle:hover:not(:disabled):not(.is-busy) {
    background: rgba(15, 108, 189, 0.08);
    box-shadow: none;
}

.meetlet-sp-btn-subtle:active:not(:disabled):not(.is-busy) {
    background: rgba(15, 108, 189, 0.14);
    transform: scale(0.98);
}

.meetlet-sp-btn-subtle.is-busy {
    color: transparent;
}

.meetlet-sp-btn-subtle.is-busy::after {
    border-color: rgba(15, 108, 189, 0.25);
    border-top-color: var(--ms-brand);
}

.meetlet-sp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.meetlet-sp-link {
    display: block;
    text-align: center;
    margin-top: 1.1rem;
    font-size: 16px;
    line-height: 22px;
    color: var(--ms-brand);
    text-decoration: none;
    font-weight: 600;
}

.meetlet-sp-link:hover {
    text-decoration: underline;
}

.meetlet-sp-link:focus-visible {
    outline: none;
    border-radius: 4px;
    box-shadow: 0 0 0 3px var(--ms-brand-glow);
}

button.meetlet-sp-link.meetlet-sp-reset-link {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

button.meetlet-sp-link.meetlet-sp-reset-link:disabled {
    opacity: 0.55;
    cursor: wait;
}

.meetlet-sp-footer {
    margin: 1.15rem 0 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--ms-text-2);
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Motion                                                                     */
/* -------------------------------------------------------------------------- */

@keyframes meetlet-sp-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes meetlet-sp-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes meetlet-sp-step-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes meetlet-sp-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes meetlet-sp-spin {
    to { transform: rotate(360deg); }
}

@keyframes meetlet-sp-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, 4%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    body.path-auth-meetletsmartpass.pagelayout-login #page::before,
    body.path-auth-meetletsmartpass.pagelayout-login #page::after,
    .meetlet-sp,
    .meetlet-sp *,
    .meetlet-sp *::before,
    .meetlet-sp *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none;
    }

    .meetlet-sp-btn.is-busy::after {
        content: none;
    }

    .meetlet-sp-btn.is-busy {
        color: #fff;
    }

    .meetlet-sp-btn-subtle.is-busy {
        color: var(--ms-brand);
    }
}

/* -------------------------------------------------------------------------- */
/* Dark scheme                                                                */
/* -------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
    body.path-auth-meetletsmartpass.pagelayout-login #page {
        background-color: #141a22;
        background-image:
            radial-gradient(ellipse 70% 55% at 8% 12%, rgba(15, 108, 189, 0.35), transparent 58%),
            radial-gradient(ellipse 55% 45% at 92% 8%, rgba(62, 190, 235, 0.18), transparent 52%),
            radial-gradient(ellipse 45% 40% at 88% 88%, rgba(139, 74, 142, 0.16), transparent 55%);
    }

    .meetlet-sp {
        --ms-text: #f5f5f5;
        --ms-text-2: #c8c8c8;
        --ms-stroke: #5c5c5c;
        --ms-stroke-2: #3d3d3d;
        --ms-surface: #292929;
        --ms-page: #141a22;
        --ms-error-bg: #3b1216;
        --ms-brand-soft: #1b2a38;
        --ms-brand-glow: rgba(96, 165, 250, 0.28);
        --ms-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
    }

    .meetlet-sp-card {
        border-color: rgba(255, 255, 255, 0.08);
    }

    .meetlet-sp-alert {
        background: #1b2a38;
    }

    .meetlet-sp-btn-subtle:hover:not(:disabled):not(.is-busy) {
        background: rgba(255, 255, 255, 0.08);
    }
}
