.auth-social-wrap {
    display: grid;
    gap: 0.875rem;
    padding-top: 0.15rem;
}

.auth-social-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    line-height: 1rem;
    white-space: nowrap;
}

.auth-social-divider::before,
.auth-social-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: hsl(var(--border));
}

.auth-social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-social-button {
    min-width: 0;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.65rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.15rem;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.auth-social-button:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-1px);
}

.auth-social-button:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.auth-social-google,
.auth-social-facebook {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.auth-social-facebook {
    color: #1877f2;
}

.auth-shell {
    display: flex !important;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    background: radial-gradient(ellipse at 50% 0%, #e5f7ee 0%, #f4f8f5 64%);
}

.auth-brand-panel {
    display: none !important;
}

.auth-form-panel {
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center !important;
    padding: 0 !important;
}

.auth-card {
    width: min(100%, 27.5rem);
    max-width: 27.5rem !important;
    margin: 0 auto !important;
    padding: clamp(1.35rem, 5vw, 2rem) !important;
    border: 1px solid #c8e9d7 !important;
    border-radius: 1.4rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 18px 50px rgba(20, 103, 65, 0.1) !important;
    backdrop-filter: blur(12px);
}

.auth-card-brand {
    margin-bottom: 1.5rem !important;
}

.auth-card-brand::after {
    content: "Secure account access";
    margin-left: auto;
    color: #718078;
    font-size: 0.7rem;
    white-space: nowrap;
}

.auth-card > .mb-8:not(.auth-card-brand) {
    margin-bottom: 1.5rem !important;
}

.auth-card h2 {
    font-size: clamp(1.75rem, 6vw, 2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.045em;
}

.auth-card input:not([type="checkbox"]) {
    min-height: 2.8rem;
    border-color: #d7e2dc;
    border-radius: 0.6rem;
    background: #f7faf8;
}

.auth-card input:not([type="checkbox"]):focus {
    border-color: #0bad70;
    background: #fff;
}

.auth-card .auth-primary-submit,
.auth-card .auth-otp-submit,
.auth-success-dialog .auth-success-continue {
    display: flex !important;
    width: 100% !important;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 3.65rem !important;
    padding: 0.85rem 1.25rem !important;
    border: 0;
    border-radius: 0.8rem;
    background: linear-gradient(105deg, #00ad68 0%, #00c982 58%, #65edb6 100%) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 184, 112, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-card .auth-switch-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    padding: 0.42rem 0.8rem;
    border: 0;
    border-radius: 0.65rem;
    background: linear-gradient(105deg, #00ad68 0%, #00c982 58%, #65edb6 100%);
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 5px 14px rgba(0, 184, 112, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-card .auth-primary-submit {
    width: min(62%, 18rem) !important;
    margin-inline: auto;
}

.auth-card .auth-switch-submit:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 8px 18px rgba(0, 184, 112, 0.24);
}

.auth-card .auth-switch-submit:focus-visible {
    outline: 3px solid rgba(0, 184, 112, .28);
    outline-offset: 3px;
}

.auth-card .auth-primary-submit::after,
.auth-card .auth-otp-submit::after,
.auth-success-dialog .auth-success-continue::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.34) 48%, transparent 70%);
    transform: translateX(-120%);
}

.auth-card .auth-primary-submit:hover:not(:disabled),
.auth-card .auth-otp-submit:hover:not(:disabled),
.auth-success-dialog .auth-success-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 14px 28px rgba(0, 184, 112, 0.28);
}

.auth-card .auth-primary-submit:hover:not(:disabled)::after,
.auth-card .auth-otp-submit:hover:not(:disabled)::after,
.auth-success-dialog .auth-success-continue:hover:not(:disabled)::after {
    animation: auth-button-shine 750ms ease;
}

.auth-card .auth-primary-submit:active:not(:disabled),
.auth-card .auth-otp-submit:active:not(:disabled),
.auth-success-dialog .auth-success-continue:active:not(:disabled) {
    transform: translateY(0) scale(.99);
}

.auth-card .auth-primary-submit:focus-visible,
.auth-card .auth-otp-submit:focus-visible,
.auth-success-dialog .auth-success-continue:focus-visible {
    outline: 3px solid rgba(0, 184, 112, .28);
    outline-offset: 3px;
}

.auth-card .auth-primary-submit:disabled,
.auth-card .auth-otp-submit:disabled,
.auth-success-dialog .auth-success-continue:disabled {
    cursor: not-allowed;
    opacity: .58;
    box-shadow: none;
}

@keyframes auth-button-shine {
    to { transform: translateX(120%); }
}

.auth-success-overlay {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(13, 29, 22, .38);
    backdrop-filter: blur(7px);
    animation: auth-overlay-in 180ms ease-out both;
}

.auth-success-dialog {
    width: min(100%, 25rem);
    padding: 2rem;
    border: 1px solid #c8e9d7;
    border-radius: 1.35rem;
    background: #fff;
    color: #14231d;
    text-align: center;
    box-shadow: 0 24px 80px rgba(12, 48, 31, .24);
    animation: auth-dialog-in 240ms cubic-bezier(.2,.8,.2,1) both;
}

.auth-success-icon {
    display: grid;
    width: 3.6rem;
    height: 3.6rem;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #00b86e, #56eaaa);
    color: white;
    box-shadow: 0 8px 22px rgba(0, 184, 112, .24);
}

.auth-success-icon svg { width: 2rem; height: 2rem; }

.auth-success-dialog h2 {
    margin: 0;
    color: #14231d;
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -.035em;
}

.auth-success-dialog p {
    margin: .55rem 0 0;
    color: #65746b;
    font-size: .92rem;
    line-height: 1.5;
}

.auth-success-dialog .auth-success-email {
    margin-top: .85rem;
    padding: .7rem .85rem;
    overflow-wrap: anywhere;
    border: 1px solid #dceee4;
    border-radius: .7rem;
    background: #f4fbf7;
    color: #087b4c;
    font-weight: 650;
}

.auth-success-dialog .auth-success-continue {
    width: 100%;
    margin-top: 1.35rem;
}

@keyframes auth-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.auth-otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .55rem;
}

.auth-card .auth-otp-digit {
    width: 100%;
    min-width: 0;
    min-height: 3.3rem;
    padding: .35rem;
    border: 1px solid #d7e2dc;
    border-radius: .75rem;
    background: #f7faf8;
    color: #14231d;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-card .auth-otp-digit:focus {
    border-color: #00ad70;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 184, 112, .14);
}

.auth-card > p:last-child {
    margin-top: 1.25rem !important;
}

@media (max-width: 420px) {
    .auth-shell {
        padding: 0.75rem;
    }

    .auth-card {
        border-radius: 1.1rem !important;
    }

    .auth-social-buttons {
        gap: 0.5rem;
    }

    .auth-social-button {
        min-height: 2.65rem;
        padding-inline: 0.45rem;
    }

    .auth-otp-inputs {
        gap: .35rem;
    }

    .auth-card .auth-otp-digit {
        min-height: 3rem;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card .auth-primary-submit,
    .auth-card .auth-otp-submit,
    .auth-card .auth-otp-digit {
        transition: none;
    }

    .auth-card .auth-primary-submit:hover:not(:disabled)::after,
    .auth-card .auth-otp-submit:hover:not(:disabled)::after {
        animation: none;
    }

    .auth-success-overlay,
    .auth-success-dialog { animation: none; }
}

/* Refined compact auth card, tuned to the supplied mint and emerald reference. */
.auth-shell {
    display: flex !important;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(209, 246, 228, .72), transparent 58%),
        linear-gradient(145deg, #f6faf7 0%, #edf7f1 100%) !important;
}

.auth-form-panel {
    display: flex;
    width: 100%;
    min-height: 0;
    align-items: center !important;
    justify-content: center;
    padding: 0 !important;
}

.auth-card {
    width: min(100%, 26.5rem);
    max-width: 26.5rem !important;
    margin: 0 auto !important;
    padding: clamp(1.15rem, 4vw, 1.5rem) !important;
    overflow: hidden;
    border: 1px solid #c9e9d7 !important;
    border-radius: 1.8rem !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 24px 65px rgba(24, 85, 57, .09), 0 3px 12px rgba(24, 85, 57, .035) !important;
    backdrop-filter: blur(16px);
}

.auth-card-brand {
    min-height: 2.6rem;
    margin-bottom: 1.45rem !important;
    gap: .7rem !important;
}

.auth-card-brand > div {
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    border-radius: .85rem !important;
    background: linear-gradient(145deg, #00b96d, #42e5a3) !important;
    box-shadow: 0 7px 16px rgba(0, 184, 112, .2);
}

.auth-card-brand > span {
    font-size: 1.3rem;
    letter-spacing: -.04em;
}

.auth-card-brand::after {
    font-size: .78rem;
}

.auth-card > .mb-8:not(.auth-card-brand) {
    margin-bottom: 1.25rem !important;
}

.auth-card h2 {
    color: #142033 !important;
    font-size: clamp(1.85rem, 6vw, 2.2rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -.05em !important;
}

.auth-card > .mb-8:not(.auth-card-brand) p {
    margin-top: .55rem !important;
    color: #697789 !important;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.auth-card form > * {
    margin-block: 0 !important;
}

.auth-card form > div.space-y-2 {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.auth-card form > div.space-y-2 > * {
    margin-block: 0 !important;
}

.auth-card form label {
    color: #172437;
    font-size: .95rem;
    font-weight: 550;
}

.auth-card input:not([type="checkbox"]) {
    min-height: 3rem;
    padding: .75rem 1rem !important;
    border: 1px solid #d7e3dc !important;
    border-radius: .8rem !important;
    background: #f6f9f7 !important;
    color: #172437 !important;
    box-shadow: 0 2px 4px rgba(20, 47, 34, .08);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-card input:not([type="checkbox"]):focus {
    border-color: #12b879 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(18, 184, 121, .12), 0 2px 5px rgba(20, 47, 34, .06) !important;
}

.auth-card input::placeholder {
    color: #9aa6a0 !important;
}

.auth-card form > div.space-y-2 > div.flex button {
    color: #00a967 !important;
    font-size: .88rem;
    font-weight: 650;
}

.auth-card .auth-primary-submit,
.auth-card .auth-otp-submit {
    min-height: 3.55rem !important;
    border-radius: .85rem !important;
    background: linear-gradient(105deg, #00ad68 0%, #00c982 62%, #51e5aa 100%) !important;
    color: #fff !important;
    font-size: 1rem;
    box-shadow: 0 12px 26px rgba(0, 184, 112, .2) !important;
}

.auth-card .auth-primary-submit {
    width: min(62%, 16rem) !important;
    margin-top: .25rem !important;
}

.auth-social-wrap {
    gap: .85rem;
    padding-top: .35rem;
}

.auth-social-divider {
    color: #344154;
    font-size: .875rem;
}

.auth-social-divider::before,
.auth-social-divider::after {
    background: #e2e9e5;
}

.auth-social-buttons {
    gap: .75rem;
}

.auth-social-button {
    min-height: 2.35rem;
    border-color: transparent;
    border-radius: .7rem;
    background: transparent;
    color: #182437;
    font-size: .9rem;
    font-weight: 650;
}

.auth-social-button:hover {
    border-color: #e4eee8;
    background: #f7fbf8;
}

.auth-social-google,
.auth-social-facebook {
    width: 1.2rem;
    height: 1.2rem;
}

.auth-card > p:last-child {
    margin-top: 1.3rem !important;
    color: #697789 !important;
    font-size: .95rem;
}

.auth-card .auth-switch-submit {
    padding: .4rem .7rem;
    border-radius: .65rem;
    background: linear-gradient(105deg, #00ad68 0%, #00c982 62%, #51e5aa 100%);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 184, 112, .16);
}

.auth-card .auth-otp-digit {
    min-height: 3.25rem;
    border-color: #d7e3dc;
    border-radius: .75rem;
    background: #f6f9f7;
}

@media (max-width: 420px) {
    .auth-shell {
        padding: .9rem;
    }

    .auth-card {
        padding: 1.05rem !important;
        border-radius: 1.4rem !important;
    }

    .auth-card-brand {
        gap: .65rem !important;
        margin-bottom: 1.2rem !important;
    }

    .auth-card-brand > span {
        font-size: 1.25rem;
    }

    .auth-card form > .grid.grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 370px) {
    .auth-card-brand::after {
        display: none;
    }
}

/* Turquoise hero with a rounded white auth sheet, based on the supplied app reference. */
html:has(.auth-shell),
body:has(.auth-shell),
#root:has(.auth-shell) {
    min-height: 100%;
    background: #eafafb;
}

.auth-shell {
    position: relative;
    display: flex !important;
    width: min(100%, 30rem);
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-inline: auto;
    padding: 0;
    overflow: hidden;
    background: #20afb8 !important;
    box-shadow: 0 0 70px rgba(29, 128, 137, .12);
}

.auth-brand-panel {
    position: relative;
    display: block !important;
    flex: 0 0 auto;
    min-height: 20rem !important;
    height: 41svh;
    max-height: 25rem;
    padding: 2rem 1.4rem 5.5rem !important;
    overflow: hidden;
    border-radius: 0 !important;
    background: linear-gradient(145deg, #19aeb7 0%, #24bbc2 58%, #34c7c8 100%) !important;
    box-shadow: none !important;
}

.auth-brand-panel::before {
    position: absolute;
    right: -3rem;
    bottom: -5rem;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgba(224, 255, 255, .22);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 1.5rem rgba(224, 255, 255, .035), 0 0 0 3rem rgba(224, 255, 255, .025);
}

.auth-brand-panel::after {
    position: absolute;
    right: 1.7rem;
    bottom: 1.5rem;
    width: 8rem;
    height: 5.5rem;
    border: 1px solid rgba(236, 255, 255, .55);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
    content: "";
    transform: rotate(-7deg);
    box-shadow: 1.25rem -1rem 0 -0.4rem rgba(255,255,255,.12), 1.25rem -1rem 0 -0.3rem rgba(236,255,255,.35);
}

.auth-brand-panel > div:first-child,
.auth-brand-panel > p:last-child,
.auth-brand-panel > div:nth-child(2) > span,
.auth-brand-panel > div:nth-child(2) > p,
.auth-brand-panel > div:nth-child(2) > div {
    display: none !important;
}

.auth-brand-panel > div:nth-child(2) {
    position: relative;
    z-index: 1;
    max-width: 22rem;
    margin: 0 !important;
}

.auth-brand-panel h1 {
    max-width: 21rem;
    color: #fff !important;
    font-size: clamp(1.85rem, 7vw, 2.3rem) !important;
    font-weight: 750 !important;
    line-height: 1.22 !important;
    letter-spacing: -.035em;
}

.auth-form-panel {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1 0 auto;
    align-items: flex-start !important;
    justify-content: center;
    margin-top: -2.4rem;
    padding: 1.35rem 1.25rem max(1.5rem, env(safe-area-inset-bottom)) !important;
    border-radius: 2rem 2rem 0 0;
    background: #fff;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 26rem !important;
    flex-direction: column;
    gap: 0;
    margin: 0 auto !important;
    padding: .25rem 0 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none;
}

.auth-card-brand { display: none !important; }

.auth-card > .mb-8:not(.auth-card-brand) {
    order: 1;
    margin: 0 0 .45rem !important;
    text-align: center;
}

.auth-card h2 {
    color: #111827 !important;
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    letter-spacing: -.035em !important;
}

.auth-card > .mb-8:not(.auth-card-brand) p { display: none; }

.auth-card > p:last-child {
    order: 2;
    margin: 0 0 1rem !important;
    color: #80868b !important;
    font-size: .82rem;
    text-align: center;
}

.auth-card form,
.auth-card > div:not(.auth-card-brand):not(.mb-8) {
    order: 3;
}

.auth-card form { gap: .62rem; }
.auth-card form label { font-size: .83rem; }

.auth-card input:not([type="checkbox"]) {
    min-height: 3.1rem;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #f5f6f7 !important;
    box-shadow: none !important;
}

.auth-card .auth-primary-submit,
.auth-card .auth-otp-submit {
    width: 100% !important;
    min-height: 3.25rem !important;
    margin-top: .35rem !important;
    border-radius: 999px !important;
    background: #20b5bd !important;
    box-shadow: none !important;
}

.auth-social-wrap { gap: .65rem; padding-top: .15rem; }
.auth-social-divider { color: #8b9094; font-size: .8rem; }
.auth-social-divider::before,
.auth-social-divider::after { background: #e7eeee; }
.auth-social-button {
    min-height: 2.8rem;
    border: 1px solid #edf0f1;
    border-radius: 999px;
    background: #f5f6f7;
    font-size: .82rem;
}

.auth-card .auth-switch-submit {
    padding: 0;
    background: transparent;
    color: #159ca5;
    box-shadow: none;
}

/* Mint palette and a cleaner, compact consent row for signup. */
html:has(.auth-shell),
body:has(.auth-shell),
#root:has(.auth-shell) { background: #effaf4; }

.auth-shell {
    background: #20b987 !important;
    box-shadow: 0 0 70px rgba(22, 145, 94, .12);
}

.auth-brand-panel {
    background: linear-gradient(145deg, #10aa78 0%, #21bd88 56%, #40d69e 100%) !important;
}

.auth-brand-panel::before { border-color: rgba(232, 255, 243, .28); }
.auth-brand-panel::after {
    border-color: rgba(240, 255, 247, .65);
    background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
    box-shadow: 1.25rem -1rem 0 -0.4rem rgba(255,255,255,.14), 1.25rem -1rem 0 -0.3rem rgba(240,255,247,.42);
}

.auth-card input:not([type="checkbox"]) {
    background: #f3f8f5 !important;
}

.auth-card input:not([type="checkbox"]):focus {
    border-color: #42c995 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(40, 190, 128, .13) !important;
}

.auth-card .auth-primary-submit,
.auth-card .auth-otp-submit {
    background: #20b987 !important;
}

.auth-card .auth-primary-submit:hover:not(:disabled),
.auth-card .auth-otp-submit:hover:not(:disabled) {
    background: #159f72 !important;
}

.auth-card .auth-switch-submit { color: #169d70; }

.auth-card form label:has(input[name="terms_accepted"]) {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .7rem .8rem !important;
    border: 1px solid #dceee4 !important;
    border-radius: .85rem !important;
    background: #f6fbf8 !important;
    color: #52645a !important;
    font-size: .78rem !important;
    font-weight: 450 !important;
    line-height: 1.45;
}

.auth-card form label:has(input[name="terms_accepted"]) input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    margin: .12rem 0 0 !important;
    accent-color: #18ad79;
    cursor: pointer;
}

.auth-card form label:has(input[name="terms_accepted"]) span { min-width: 0; }
.auth-card form label:has(input[name="terms_accepted"]) a {
    color: #159d70 !important;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-social-button { background: #f5f9f6; }
.auth-social-button:hover { background: #eef8f2; }

/* Center notifications in the viewport and match them to the mint auth UI. */
[data-sonner-toaster][data-x-position="center"] {
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: min(22rem, calc(100vw - 2rem)) !important;
    transform: translate(-50%, -50%) !important;
    isolation: isolate;
}

#root:has(.auth-shell) [data-sonner-toaster][data-x-position="center"]:has([data-sonner-toast][data-type="error"])::before {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(17, 37, 28, .3);
    content: "";
    transform: translate(-50%, -50%);
    backdrop-filter: blur(3px);
}

[data-sonner-toaster][data-x-position="center"] [data-sonner-toast] {
    width: 100% !important;
    min-height: 5.25rem;
    padding: 1rem 2.8rem 1rem 4.25rem !important;
    border: 1px solid #f1caca !important;
    border-radius: 1.2rem !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(15, 38, 26, .24), 0 5px 16px rgba(15, 38, 26, .12) !important;
    font-size: .92rem !important;
    font-weight: 600;
}

[data-sonner-toaster][data-x-position="center"] [data-sonner-toast][data-type="error"] {
    border-color: #f4c7c7 !important;
    background: #fff !important;
    color: #a62d2d !important;
}

[data-sonner-toaster][data-x-position="center"] [data-sonner-toast][data-type="success"] {
    border-color: #bde9d0 !important;
    background: #f3fcf6 !important;
    color: #14784e !important;
}

[data-sonner-toaster][data-x-position="center"] [data-sonner-toast][data-type="error"] [data-icon] {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    display: grid !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
    place-items: center;
    margin: 0 !important;
    border-radius: 50%;
    background: #fff0ef;
    color: #d14646;
    transform: translateY(-50%);
}

#root:has(.auth-shell) [data-sonner-toaster][data-x-position="center"] [data-sonner-toast][data-type="error"] [data-content]::after {
    display: block;
    margin-top: .25rem;
    color: #7d8580;
    content: "Check your details and try again.";
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.35;
}

[data-sonner-toaster][data-x-position="center"] [data-close-button] {
    top: 50% !important;
    right: .8rem !important;
    left: auto !important;
    width: 1.7rem !important;
    height: 1.7rem !important;
    border-color: #e7eeea !important;
    border-radius: 50% !important;
    background: #f5f8f6 !important;
    color: #65736b !important;
    transform: translateY(-50%) !important;
}

@media (min-width: 600px) {
    .auth-shell {
        min-height: min(calc(100svh - 3rem), 56rem);
        margin-block: 1.5rem;
        border: 1px solid rgba(32, 185, 135, .18);
        border-radius: 2.25rem;
    }
}

@media (max-width: 420px) {
    .auth-shell { padding: 0; }
    .auth-brand-panel { min-height: 18rem !important; height: 38svh; padding-inline: 1.35rem !important; }
    .auth-form-panel { padding-inline: 1.15rem !important; }
    .auth-card { padding-inline: 0 !important; }
    .auth-card form > .grid.grid-cols-2 { grid-template-columns: 1fr; }
}

/* Account profile dashboard */
.account-hero {
    position: relative;
    border-color: rgba(30, 173, 125, .18) !important;
    background: linear-gradient(135deg, #f1fbf6 0%, #fff 62%, #f5f9ff 100%) !important;
}
.account-hero::after {
    position: absolute;
    top: -4rem;
    right: -2rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid rgba(25, 173, 123, .15);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.account-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem .85rem !important;
}
.account-avatar {
    position: relative;
    overflow: hidden;
    display: grid;
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 25%, #fff 0 8%, transparent 9%), linear-gradient(145deg, #dff9ec, #bfe9d8 52%, #dce9ff);
    box-shadow: 0 0 0 1px rgba(39, 151, 112, .28), 0 8px 22px rgba(30, 130, 96, .14);
    color: #087c58;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0;
}
.account-avatar::before {
    position: absolute;
    top: 17%;
    left: 36%;
    width: 29%;
    height: 29%;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: linear-gradient(145deg, #526f80, #233c4b);
    box-shadow: 0 1px 4px rgba(27, 62, 50, .2);
    content: "";
}
.account-avatar::after {
    position: absolute;
    right: 19%;
    bottom: -13%;
    left: 19%;
    height: 57%;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 48% 48% 30% 30%;
    background: linear-gradient(145deg, #7896a4, #385a68 70%);
    box-shadow: 0 -3px 12px rgba(255, 255, 255, .45) inset;
    content: "";
}
.account-identity { min-width: 0; }
.account-identity h2 { margin-top: .16rem; overflow-wrap: anywhere; }
.account-eyebrow {
    color: #168a65;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .18em;
}
.account-stats {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    padding: .65rem 1.25rem 1.25rem !important;
}
.account-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .14rem;
    padding: .8rem .85rem;
    border: 1px solid rgba(30, 150, 111, .12);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .82);
}
.account-stat > span { color: #697b73; font-size: .6rem; font-weight: 800; letter-spacing: .1em; }
.account-stat strong { overflow: hidden; color: #182b24; font-size: clamp(.95rem, 2.2vw, 1.25rem); text-overflow: ellipsis; white-space: nowrap; }
.account-stat small { color: #77847e; font-size: .7rem; }
.account-shortcuts { overflow: hidden; }
.account-shortcut-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .6rem;
}
.account-shortcut {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .55rem;
    padding: .7rem .75rem;
    border: 1px solid #e7efea;
    border-radius: .8rem;
    background: #fbfdfc;
    color: #25352e;
    font-size: .78rem;
    font-weight: 650;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.account-shortcut:hover { transform: translateY(-1px); border-color: #a8ddc5; background: #f1fbf6; }
.account-shortcut-icon {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .55rem;
    background: #e9f8f0;
    color: #0e9b6b;
    font-size: 1rem;
}
.account-shortcut > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-shortcut-arrow { margin-left: auto; color: #8b9992; font-size: 1.1rem; }
.account-page { display: block !important; }
.account-page > .account-legacy-summary { display: none !important; }
.account-settings { margin-top: 0; }
.account-settings > [class*="CardHeader"] { padding-bottom: .5rem; }
.account-settings input[readonly] { background: #f7faf8; color: #47554e; }
.account-settings button { min-height: 2.9rem; }

@media (max-width: 700px) {
    .account-shortcut-list { display: flex !important; overflow-x: auto; margin-inline: -1rem; padding: .1rem 1rem .5rem; scrollbar-width: thin; }
    .account-shortcut { min-width: 10.5rem; }
    .account-hero-main { padding-inline: 1rem !important; }
    .account-stats { gap: .45rem; padding-inline: .8rem !important; }
    .account-stat { padding: .7rem .6rem; }
}
@media (max-width: 380px) {
    .account-avatar { width: 4.25rem; height: 4.25rem; }
    .account-stats { grid-template-columns: 1fr; }
    .account-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .account-stat > span { grid-column: 1; }
    .account-stat strong { grid-column: 2; grid-row: 1 / span 2; }
    .account-stat small { grid-column: 1; }
}

