/* ==========================================================================
   Patient Auth — Figma Desktop-8 (login), Desktop-9 (OTP), Desktop-11 (profile)
   Canvas: 1440 × 840 | Left: 694 × 808 @ 16,16 | Form: 480px @ x=795
   Requirement: no page scroll; fully responsive within the viewport
   ========================================================================== */

html.patient-auth-html,
html:has(.patient-auth-body),
html:has(.figma-canvas) {
    height: 100%;
    overflow: hidden;
}

.patient-auth-body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    height: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Canvas — fills viewport, never scrolls
   -------------------------------------------------------------------------- */
.figma-canvas {
    width: 100%;
    max-width: 1440px;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 16px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Left hero panel
   -------------------------------------------------------------------------- */
.figma-left-card {
    position: relative;
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
    background-color: #002685;
    width: min(694px, 48vw, calc((100dvh - 32px) * 694 / 808));
    height: min(808px, calc(100dvh - 32px));
    aspect-ratio: 694 / 808;
}

.figma-left-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
}

.figma-left-card__logo-hotspot,
.figma-left-card__logo {
    position: absolute;
    top: 4.2%;
    left: 12.1%;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.figma-left-card__logo-img {
    display: block;
    height: clamp(42px, 6.5%, 56px);
    width: auto;
    max-width: min(280px, 52%);
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.figma-field-icon,
.figma-edit-icon,
.figma-trust-icon {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.figma-field-icon {
    width: 17px;
    height: 21px;
}

.figma-edit-icon {
    width: 16px;
    height: 16px;
}

.figma-trust-icon {
    width: 18px;
    height: 18px;
}

.figma-mobile-brand__logo {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   Right form column
   -------------------------------------------------------------------------- */
.figma-form-column-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    height: min(808px, calc(100dvh - 32px));
    max-height: min(808px, calc(100dvh - 32px));
    display: flex;
    /* Top-aligned with left panel — NOT vertically centered */
    align-items: flex-start;
    justify-content: flex-start;
    /*
      Figma Desktop-8/9/11:
      - Back @ y=44 → 28px below panel top (44-16)
      - Title @ y=135 → 119px below panel top (135-16)
    */
    padding: 28px clamp(16px, 3vw, 40px) 0;
    margin-left: clamp(16px, 4vw, 85px);
    overflow: hidden;
    box-sizing: border-box;
}

.figma-form-column {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    /*
      Figma rhythm (Desktop-8):
      title→subtitle 12px | subtitle→label 44px | label→input 12px
      input→button 20px | button→subtext 16px | subtext→divider 44px
      divider→trust 44px | trust→disclaimer 16px
      Back→title gap 71px (135 - 44 - 20)
    */
    --auth-gap-sm: 12px;
    --auth-gap-md: 16px;
    --auth-gap-lg: 20px;
    --auth-gap-xl: 44px;
    --auth-title-mb: 44px; /* subtitle bottom → first field label */
    --auth-topbar-mb: 71px; /* Back bottom → title */
}

/* Top bar / Back — Figma Frame 22 @ y=44 */
.figma-top-bar {
    width: 100%;
    max-width: 480px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--auth-topbar-mb);
    box-sizing: border-box;
}

/*
  Login has no Back (Desktop-8) but title must still land at y=135.
  Collapse the Back row and keep equivalent top spacer: 20 + 71 = 91px
  (plus wrapper padding-top 28px → 119px total to title).
*/
.figma-top-bar:has(.figma-back-button.invisible),
.figma-top-bar:has(.figma-back-button.pointer-events-none) {
    height: 91px;
    margin-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.figma-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #828282; /* Figma Frame 22 — muted back control */
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.figma-back-button:hover {
    color: #111111;
    transform: translateX(-2px);
}

.figma-back-button .figma-back-chevron,
.figma-back-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: inherit;
    display: block;
}

/* Typography */
.figma-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    color: #111111;
    text-align: center;
    margin: 0;
}

.figma-subtitle {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #828282;
    text-align: center;
    margin: 12px 0 0; /* Figma: title y=135/h=29 → subtitle y=176 */
}

.figma-auth-header {
    text-align: center;
    margin-bottom: var(--auth-title-mb);
}

.figma-label {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #111111;
    display: block;
    text-align: left;
    margin-bottom: 12px; /* Figma: label 239 → input 270 */
}

/* Inputs — Group 82: whole pill is the hit target */
.figma-input-group {
    width: 100%;
    height: 56px;
    background-color: #F7F8FA;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 42px;
    display: flex;
    align-items: stretch;
    padding: 0 20px;
    box-sizing: border-box;
    cursor: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.figma-input-group:focus-within {
    border-color: #007BEA;
    box-shadow: 0 0 0 3px rgba(0, 123, 234, 0.15);
    background-color: #FFFFFF;
}

.figma-input-group.is-invalid {
    border-color: #F43F5E !important;
    background-color: rgba(244, 63, 94, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15) !important;
}

.figma-input-group > .figma-input-prefix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
}

.figma-input-group > .figma-input-prefix.figma-input-prefix--standalone,
.figma-input-group > .figma-input-prefix:only-of-type:not(:has(+ .figma-vertical-divider)) {
    margin-right: 14px;
}

.figma-vertical-divider {
    width: 1px;
    height: clamp(28px, 4.5vh, 38px);
    background-color: rgba(0, 0, 0, 0.10);
    margin: auto 10px;
    flex-shrink: 0;
    pointer-events: none;
}

/* Kill every native / global input chrome so only the pill shows */
.figma-input-group .figma-input-field,
.figma-input-group input.figma-input-field,
.figma-input-group input.auth-field,
.figma-input-group .figma-input-field:focus,
.figma-input-group .figma-input-field:hover,
.figma-input-group .figma-input-field:active,
.figma-input-group .figma-input-field:focus-visible,
.figma-input-group .figma-input-field:invalid,
.figma-input-group .figma-input-field:-moz-ui-invalid,
.figma-input-group .figma-input-field:user-invalid,
.figma-input-group .figma-input-field:-webkit-autofill,
.figma-input-group .figma-input-field:-webkit-autofill:hover,
.figma-input-group .figma-input-field:-webkit-autofill:focus {
    flex: 1 1 0% !important;
    width: 0 !important; /* force flex child to take remaining pill width */
    min-width: 0 !important;
    align-self: stretch !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 4px 0 8px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    font-family: 'Urbanist', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    color: #111111 !important;
    caret-color: #007BEA;
    cursor: text;
}

.figma-input-group .figma-input-field::placeholder {
    color: #A3A3A3 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Chrome autofill paints an opaque yellow box — keep it invisible in the pill */
.figma-input-group .figma-input-field:-webkit-autofill,
.figma-input-group .figma-input-field:-webkit-autofill:hover,
.figma-input-group .figma-input-field:-webkit-autofill:focus {
    -webkit-text-fill-color: #111111 !important;
    transition: background-color 99999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px transparent inset !important;
}

.figma-input-group.is-locked {
    background-color: #F7F8FA;
    cursor: not-allowed;
    user-select: none;
}

.figma-input-group.is-locked:focus-within {
    border-color: rgba(0, 0, 0, 0.10);
    box-shadow: none;
    background-color: #F7F8FA;
}

.figma-input-field.is-locked,
.figma-input-field[readonly],
.figma-input-field[disabled] {
    cursor: not-allowed;
    user-select: none;
    pointer-events: none;
    color: #111111;
    font-weight: 600;
    opacity: 1;
    -webkit-text-fill-color: #111111;
}

/* OTP digits — Desktop-9: 56.7 × 61.56, radius 9.72, ~20px gap */
.figma-otp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 20px);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.figma-otp-digit {
    width: clamp(42px, 5.5vw, 56.7px);
    height: clamp(48px, 7vh, 61.56px);
    border-radius: 9.72px;
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    background-color: #FFFFFF;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 24px);
    color: #111111;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    padding: 0;
    -moz-appearance: textfield;
}

.figma-otp-digit::-webkit-outer-spin-button,
.figma-otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.figma-otp-digit:focus {
    border-color: #007BEA;
    box-shadow: 0 0 0 3px rgba(0, 123, 234, 0.15);
}

.figma-otp-digit.has-value {
    border-color: rgba(0, 0, 0, 0.25);
}

.figma-otp-digit.is-invalid {
    border-color: #F43F5E;
    background-color: rgba(244, 63, 94, 0.05);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.figma-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--auth-gap-lg);
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 19px;
    text-align: center;
}

.figma-resend-label {
    font-weight: 500;
    color: #828282;
}

.figma-resend-link {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
    color: #0076FE;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.figma-resend-link:hover:not(:disabled) {
    color: #005bbf;
    text-decoration: underline;
}

.figma-resend-link:disabled {
    color: #A3A3A3;
    cursor: not-allowed;
    text-decoration: none;
}

/* Primary CTA — Group 83: 56px / radius 42px / #007BEA */
.figma-button {
    width: 100%;
    height: 56px;
    background-color: #007BEA;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 42px;
    color: #FFFFFF;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    box-sizing: border-box;
    margin-top: 20px; /* Figma: input 270+56=326 → button 346 */
}

.figma-button:hover:not(:disabled) {
    background-color: #006ecf;
    box-shadow: 0 4px 14px rgba(0, 123, 234, 0.28);
}

.figma-button:active:not(:disabled) {
    transform: scale(0.99);
}

.figma-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.figma-change-number-link {
    background: transparent;
    border: none;
    padding: 0;
    margin: var(--auth-gap-sm) auto 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 19px;
    color: #0076FE;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.figma-change-number-link:hover {
    color: #005bbf;
    text-decoration: underline;
}

.figma-change-number-link svg,
.figma-change-number-link .figma-edit-icon {
    width: 16px;
    height: 16px;
    color: inherit;
    flex-shrink: 0;
}

.figma-phone-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0076FE;
    text-decoration: none;
    cursor: pointer;
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    transition: color 0.15s ease;
}

.figma-input-group.is-locked .figma-phone-edit-link {
    pointer-events: auto;
    cursor: pointer;
}

.figma-phone-edit-link:hover {
    color: #005bbf;
    text-decoration: underline;
}

.figma-phone-edit-link svg {
    width: 14px;
    height: 14px;
    color: inherit;
}

.figma-subtext {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #828282;
    text-align: center;
    max-width: 434px;
    margin: 16px auto 0; /* Figma: button 346+56=402 → subtext 418 */
}

.figma-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    /* Figma Desktop-8: subtext 418+19=437 → line 481 (=44px), trust 525 (=44px) */
    margin: 44px 0;
}

.figma-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #828282;
    flex-wrap: wrap;
    text-align: center;
}

.figma-trust-text {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: inherit;
    color: #828282;
}

.figma-disclaimer {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #828282;
    text-align: center;
    max-width: 480px;
    margin: 16px auto 0; /* Figma: trust 525+24=549 → disclaimer 565 */
}

.figma-disclaimer a,
.figma-disclaimer strong {
    font-weight: 600;
    color: #111111;
    text-decoration: none;
}

.figma-disclaimer a:hover {
    text-decoration: underline;
}

.figma-profile-fields {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vh, 20px);
}

.figma-mobile-brand {
    display: none;
}

.figma-modal-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 16px;
}

.figma-modal-brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.field-error {
    animation: authFadeIn 0.2s ease-in-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Large desktop (≥1440): exact Figma spacing
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
    .figma-left-card {
        width: 694px;
        height: 808px;
    }

    .figma-form-column-wrapper {
        margin-left: 85px; /* 795 - 16 - 694 = 85 */
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 28px; /* Back y=44 - panel y=16 */
        padding-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Tablet / laptop (≤1023): stack form only, hide hero — still no page scroll
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .figma-canvas {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: clamp(12px, 3vw, 20px);
        /* Keep the page shell locked; only the form column may scroll if keyboard opens */
        overflow: hidden;
    }

    .figma-left-card {
        display: none;
    }

    .figma-form-column-wrapper {
        width: 100%;
        height: 100%;
        max-height: 100%;
        margin-left: 0;
        padding: clamp(12px, 3vh, 24px) 0 0;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .figma-form-column-wrapper > .figma-form-column {
        margin-left: auto;
        margin-right: auto;
    }

    .figma-form-column {
        --auth-topbar-mb: clamp(12px, 3vh, 28px);
        --auth-title-mb: clamp(16px, 3vh, 28px);
        max-width: min(480px, 100%);
    }

    .figma-mobile-brand {
        display: flex;
        justify-content: center;
        margin-bottom: clamp(12px, 2.5vh, 24px);
    }

    .figma-mobile-brand__pill {
        background: #007BEA;
        padding: 10px 18px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(0, 123, 234, 0.25);
    }

    .figma-mobile-brand__pill img {
        height: 24px;
        width: auto;
        object-fit: contain;
    }
}

/* Short landscape / short laptop — compress Figma rhythm to avoid scroll */
@media (max-height: 760px) and (min-width: 1024px) {
    .figma-form-column {
        --auth-topbar-mb: 28px;
        --auth-title-mb: 20px;
        --auth-gap-xl: 20px;
    }

    .figma-top-bar:has(.figma-back-button.invisible),
    .figma-top-bar:has(.figma-back-button.pointer-events-none) {
        height: 48px;
    }

    .figma-divider {
        margin: 20px 0;
    }

    .figma-left-card {
        border-radius: 24px;
    }
}

@media (max-height: 680px) {
    .figma-form-column-wrapper {
        padding-top: 12px;
    }

    .figma-form-column {
        --auth-topbar-mb: 16px;
        --auth-title-mb: 16px;
        --auth-gap-xl: 12px;
    }

    .figma-top-bar:has(.figma-back-button.invisible),
    .figma-top-bar:has(.figma-back-button.pointer-events-none) {
        height: 28px;
    }

    .figma-title {
        font-size: 20px;
        line-height: 24px;
    }

    .figma-subtitle {
        font-size: 14px;
        margin-top: 8px;
    }

    .figma-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .figma-input-group,
    .figma-button {
        height: 48px;
    }

    .figma-button {
        margin-top: 12px;
        font-size: 16px;
    }

    .figma-subtext,
    .figma-trust,
    .figma-disclaimer {
        font-size: 13px;
    }

    .figma-subtext {
        margin-top: 10px;
    }

    .figma-divider {
        margin: 12px 0;
    }

    .figma-disclaimer {
        margin-top: 10px;
    }

    .figma-otp-digit {
        width: 40px;
        height: 46px;
        font-size: 18px;
        border-radius: 8px;
    }

    .figma-mobile-brand {
        margin-bottom: 8px;
    }
}

/* Very small phones — keep viewport lock; allow form to use full height tightly */
@media (max-width: 380px) {
    .figma-otp-container {
        gap: 6px;
    }

    .figma-otp-digit {
        width: 38px;
        height: 44px;
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   Modal overrides
   -------------------------------------------------------------------------- */
#loginModalContent .figma-form-column {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    --auth-topbar-mb: 8px;
    --auth-title-mb: 20px;
}

#loginModalContent .figma-top-bar:has(.figma-back-button.invisible),
#loginModalContent .figma-top-bar:has(.figma-back-button.pointer-events-none) {
    display: none;
}

#loginModalContent .figma-modal-brand {
    margin: 4px 0 20px;
}

#loginModalContent .figma-modal-brand img {
    height: 36px;
}

#loginModalContent .figma-title {
    font-size: clamp(20px, 4vw, 24px);
}

#loginModalContent .figma-subtitle {
    font-size: clamp(14px, 2.5vw, 15px);
}

/* --------------------------------------------------------------------------
   Toast notification — bottom center
   -------------------------------------------------------------------------- */
.toast-container,
.toast-container.is-bottom-center,
.patient-auth-body .toast-container,
.patient-auth-html .toast-container,
body:has(.figma-canvas) .toast-container,
body:has(#patientLoginModal:not(.hidden)) .toast-container {
    top: auto !important;
    bottom: 60px !important;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    align-items: center !important;
    z-index: 99999 !important;
}

.toast-container .toast,
.toast-container.is-bottom-center .toast,
.patient-auth-body .toast,
.patient-auth-html .toast,
body:has(.figma-canvas) .toast,
body:has(#patientLoginModal:not(.hidden)) .toast {
    transform: translateY(28px);
}

.toast-container .toast.show,
.toast-container.is-bottom-center .toast.show,
.patient-auth-body .toast.show,
.patient-auth-html .toast.show,
body:has(.figma-canvas) .toast.show,
body:has(#patientLoginModal:not(.hidden)) .toast.show {
    transform: translateY(0);
}

.toast-container .toast.hide,
.toast-container.is-bottom-center .toast.hide,
.patient-auth-body .toast.hide,
.patient-auth-html .toast.hide,
body:has(.figma-canvas) .toast.hide,
body:has(#patientLoginModal:not(.hidden)) .toast.hide {
    opacity: 0 !important;
    transform: translateY(-28px) !important;
    pointer-events: none !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.32s ease !important;
}

