:root {
    --ph-blue: #0b63ce;
    --ph-blue-600: #0a54b0;
    --ph-blue-700: #083f86;
    --ph-cyan: #22b8f0;
    --ink: #0e1a2b;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e6eaf1;
    --field: #f6f8fd;
    --danger: #d64545;
    --success: #1c9c62;
    --panel: #071021;
    --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font);
    color: var(--ink);
    background: #f7f9fd;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(11, 99, 206, 0.18);
}

/* App-like chrome: kill tap highlight / callouts, re-enable on inputs */
a,
button,
label,
.panel__badge {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

input,
textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* ============ Shell ============ */
.auth {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ============ Dark visual panel ============ */
.auth__panel {
    position: relative;
    flex: 1 1 48%;
    max-width: clamp(520px, 48%, 720px);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 3.4vw, 56px);
    overflow: hidden;
    color: #eaf1fb;
    background:
        radial-gradient(120% 90% at 12% 0%, #12305e 0%, transparent 60%),
        linear-gradient(160deg, #071021 0%, #0a1830 45%, #071629 100%);
}

.auth__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(120, 170, 255, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(120, 170, 255, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000 0%, transparent 100%);
    mask-image: radial-gradient(80% 70% at 30% 30%, #000 0%, transparent 100%);
    pointer-events: none;
}

.auth__panel::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -180px;
    bottom: -220px;
    border-radius: 999px;
    background: radial-gradient(circle at 40% 40%, rgba(34, 184, 240, 0.34), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}

.panel__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    top: -160px;
    left: -120px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(11, 99, 206, 0.55), transparent 68%);
    filter: blur(60px);
    animation: drift 18s ease-in-out infinite;
    pointer-events: none;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(26px, 20px); }
}

.panel__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel__logo {
    height: clamp(34px, 2.6vw, 44px);
    width: auto;
    max-width: min(240px, 60vw);
    object-fit: contain;
}

.panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 5px 12px 5px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #bfe0ff;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
}

.panel__badge i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

.panel__body {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 40px 0;
}

.panel__title {
    margin: 22px 0 0;
    font-size: clamp(30px, 2.9vw, 46px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    max-width: 15ch;
}

.panel__title em {
    font-style: normal;
    background: linear-gradient(90deg, #4ea3ff, #4ee0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel__text {
    margin: 16px 0 0;
    max-width: 42ch;
    font-size: clamp(13.5px, 1vw, 15px);
    line-height: 1.6;
    color: #9db2cf;
}

.panel__features {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 13px;
}

.panel__features li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    font-weight: 500;
    color: #cfdcef;
}

.panel__features svg {
    flex: none;
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 999px;
    color: #4ee0ff;
    background: rgba(78, 224, 255, 0.12);
}

.panel__foot {
    position: relative;
    z-index: 1;
    display: flex;
    gap: clamp(18px, 3vw, 36px);
    flex-wrap: wrap;
}

.panel__stat strong {
    display: block;
    font-size: clamp(17px, 1.4vw, 22px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.panel__stat span {
    font-size: 11.5px;
    letter-spacing: 0.03em;
    color: #8397b4;
}

/* ============ Form side ============ */
.auth__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 3vw, 56px);
    background: #ffffff;
}

.auth__form-wrap {
    width: 100%;
    max-width: clamp(340px, 30vw, 440px);
    animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-logo {
    display: none;
    margin: 0 auto 24px;
}

.form-logo img {
    display: block;
    margin: 0 auto;
    height: auto;
    max-height: 44px;
    max-width: min(230px, 80vw);
    object-fit: contain;
}

/* ---------- Heading ---------- */
.auth__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ph-blue);
}

.auth__title {
    margin: 0;
    font-size: clamp(23px, 1.8vw, 28px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.auth__subtitle {
    margin: 9px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.45;
}

.alert[hidden] {
    display: none;
}

.alert svg {
    flex: none;
    margin-top: 1px;
}

.alert--error {
    background: #fef5f5;
    border: 1px solid #f6d9d9;
    color: #a52a2a;
}

.alert--success {
    background: #f2fbf6;
    border: 1px solid #cfedda;
    color: #157347;
}

.alert__ico--success { display: none; }
.alert--success .alert__ico--error { display: none; }
.alert--success .alert__ico--success { display: block; }

.alert.is-shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* ---------- Form ---------- */
.form {
    margin-top: 26px;
}

.field + .field {
    margin-top: 15px;
}

/* Button directly after the last field (forgot / reset forms) */
.form .field + .btn {
    margin-top: 22px;
}

.field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.field__label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.field__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ph-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

.field__link:hover {
    color: var(--ph-blue-700);
}

.control {
    position: relative;
    display: flex;
    align-items: center;
}

.control__icon {
    position: absolute;
    left: 14px;
    width: 17px;
    height: 17px;
    color: var(--muted-2);
    pointer-events: none;
    transition: color 0.15s ease;
}

/* 16px keeps iOS Safari from auto-zooming on focus */
.control__input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 41px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.control__input::placeholder {
    color: #aab4c5;
    font-size: 15px;
}

.control__input:hover {
    border-color: #d8dfec;
}

.control__input:focus {
    background: #ffffff;
    border-color: var(--ph-blue);
    box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.12);
}

.control:focus-within .control__icon {
    color: var(--ph-blue);
}

.control__input:-webkit-autofill,
.control__input:-webkit-autofill:hover,
.control__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 40px var(--field) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.control__input--invalid {
    border-color: #e8b9b9;
    background: #fffafa;
}

.control__input--invalid:focus {
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
    border-color: var(--danger);
}

.control__toggle {
    position: absolute;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.control__toggle:hover {
    background: #eef3fb;
    color: var(--ph-blue);
}

.control__toggle:focus-visible {
    outline: 2px solid var(--ph-blue);
    outline-offset: 1px;
}

.field__hint {
    margin: 7px 2px 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--danger);
}

.field__hint[hidden] {
    display: none;
}

/* ---------- Remember ---------- */
.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 20px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.remember input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.remember input:checked {
    background: var(--ph-blue);
    border-color: var(--ph-blue);
}

.remember input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember input:focus-visible {
    outline: 2px solid var(--ph-blue);
    outline-offset: 2px;
}

/* ---------- Button ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(180deg, #1371e0 0%, var(--ph-blue-600) 100%);
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    box-shadow: 0 12px 24px -12px rgba(11, 99, 206, 0.9);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -14px rgba(11, 99, 206, 0.95);
    filter: brightness(1.04);
}

.btn:active {
    transform: translateY(0) scale(0.99);
}

.btn:focus-visible {
    outline: 2px solid var(--ph-blue-700);
    outline-offset: 2px;
}

.btn svg {
    transition: transform 0.15s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 999px;
    animation: spin 0.7s linear infinite;
}

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

body.is-loading .btn {
    cursor: progress;
    filter: saturate(0.92);
    color: transparent;
}

body.is-loading .btn__spinner {
    display: block;
    position: absolute;
}

body.is-loading .btn__label,
body.is-loading .btn__arrow {
    opacity: 0;
}

/* ---------- Meta ---------- */
.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    font-size: 11.5px;
    color: var(--muted-2);
}

.meta__trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta__trust svg {
    color: var(--success);
}

.meta__help {
    font: inherit;
    font-weight: 600;
    color: var(--ph-blue);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.meta__help:hover {
    color: var(--ph-blue-700);
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.auth__foot {
    margin: 24px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

.auth__foot a {
    font-weight: 700;
    color: var(--ph-blue);
    text-decoration: none;
}

.auth__foot a:hover {
    text-decoration: underline;
}

.auth__legal {
    margin-top: 22px;
    text-align: center;
    font-size: 11.5px;
    color: var(--muted-2);
}

.auth__legal a {
    color: #7c889c;
    text-decoration: none;
}

.auth__legal a:hover {
    color: var(--ph-blue);
    text-decoration: underline;
}

.auth__legal span {
    margin: 0 7px;
    opacity: 0.6;
}

/* ---------- Mobile-only helpers (hidden by default) ---------- */
.sheet__handle,
.trust-strip {
    display: none;
}

/* ================================================================ */
/* Large desktop / TV                                                */
/* ================================================================ */
@media (min-width: 1600px) {
    .auth__panel {
        max-width: 760px;
    }

    .auth__form-wrap {
        max-width: 460px;
    }

    .control__input {
        height: 54px;
    }

    .btn {
        min-height: 56px;
        font-size: 16px;
    }
}

@media (min-width: 2240px) {
    .auth__panel {
        max-width: 900px;
        padding: 80px 72px;
    }

    .auth__form-wrap {
        max-width: 520px;
    }

    .auth__title {
        font-size: 34px;
    }

    .auth__subtitle,
    .field__label {
        font-size: 16px;
    }

    .control__input {
        height: 62px;
        font-size: 17px;
    }

    .btn {
        min-height: 64px;
        font-size: 18px;
    }

    .auth__foot,
    .remember {
        font-size: 15px;
    }
}

/* ================================================================ */
/* Tablet / small laptop: stack with a hero + rising sheet           */
/* ================================================================ */
@media (max-width: 1024px) {
    .auth {
        flex-direction: column;
    }

    .auth__panel {
        flex: none;
        width: 100%;
        max-width: none;
        min-height: 0;
        height: clamp(230px, 32vh, 360px);
        justify-content: flex-start;
        padding: calc(clamp(20px, 4vw, 34px) + var(--safe-t)) clamp(20px, 4vw, 40px) 30px;
        padding-left: calc(clamp(20px, 4vw, 40px) + var(--safe-l));
        padding-right: calc(clamp(20px, 4vw, 40px) + var(--safe-r));
    }

    .auth__panel .panel__features,
    .auth__panel .panel__foot {
        display: none;
    }

    .auth__panel .panel__body {
        margin: 0;
        padding: 16px 0 0;
    }

    .panel__text {
        display: none;
    }

    .panel__title {
        margin-top: 14px;
        font-size: clamp(24px, 5vw, 36px);
        max-width: 18ch;
    }

    .auth__main {
        position: relative;
        z-index: 2;
        margin-top: -26px;
        align-items: flex-start;
        justify-content: center;
        border-radius: 26px 26px 0 0;
        background: #ffffff;
        padding: 32px clamp(20px, 5vw, 40px) calc(32px + var(--safe-b));
        padding-left: calc(clamp(20px, 5vw, 40px) + var(--safe-l));
        padding-right: calc(clamp(20px, 5vw, 40px) + var(--safe-r));
        box-shadow: 0 -22px 45px -34px rgba(7, 16, 33, 0.55);
        flex: 1;
    }

    .auth__form-wrap {
        max-width: 480px;
    }

    .form-logo {
        display: none;
    }
}

/* ================================================================ */
/* Mobile: native-app feel                                           */
/* ================================================================ */
@media (max-width: 768px) {
    /* --- Compact, centred brand header --- */
    .auth__panel {
        height: auto;
        padding: calc(26px + var(--safe-t)) 20px 34px;
        align-items: center;
        text-align: center;
    }

    .panel__top {
        justify-content: center;
    }

    .auth__panel .panel__body {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 16px 0 0;
    }

    /* Headline lives in the sheet on phones */
    .panel__title {
        display: none;
    }

    .panel__badge {
        font-size: 10.5px;
    }

    /* --- Clean rising sheet --- */
    .auth__main {
        position: relative;
        margin-top: -22px;
        border-radius: 28px 28px 0 0;
        padding: 34px 22px calc(88px + var(--safe-b));
        box-shadow: 0 -26px 50px -36px rgba(7, 16, 33, 0.5);
    }

    .sheet__handle {
        display: block;
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #e4e9f2;
    }

    /* --- Centred, de-cluttered heading --- */
    .auth__eyebrow {
        display: none;
    }

    .auth__title {
        text-align: center;
        font-size: 25px;
    }

    .auth__subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 300px;
    }

    .form {
        margin-top: 24px;
    }

    .field + .field {
        margin-top: 16px;
    }

    .control__input {
        height: 54px;
    }

    .btn {
        min-height: 54px;
    }

    /* Collapse the middle meta row to reduce clutter */
    .meta {
        display: none;
    }

    .auth__foot {
        border-top: 0;
        margin-top: 22px;
        padding-top: 0;
    }

    .trust-strip {
        display: flex;
        justify-content: center;
        gap: 26px;
        margin-top: 28px;
        padding-top: 22px;
        border-top: 1px solid var(--line);
    }

    .trust-strip__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        font-size: 11px;
        font-weight: 600;
        color: var(--muted-2);
        letter-spacing: 0.01em;
    }

    .trust-strip__item svg {
        width: 20px;
        height: 20px;
        color: var(--ph-blue);
    }

    .auth__legal {
        display: none;
    }
}

@media (max-width: 380px) {
    .auth__main {
        padding-left: calc(14px + var(--safe-l));
        padding-right: calc(14px + var(--safe-r));
    }

    .auth__title {
        font-size: 23px;
    }
}

/* Landscape phones / very short screens */
@media (max-height: 700px) and (max-width: 1024px) {
    .auth__panel {
        height: clamp(170px, 26vh, 220px);
    }

    .panel__badge {
        display: none;
    }
}

/* ================================================================ */
/* Motion preferences                                                */
/* ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .panel__glow,
    .auth__form-wrap,
    .btn,
    .btn svg,
    .alert.is-shake {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================================================ */
/* Toasts                                                            */
/* ================================================================ */
/* When JS is active, server-rendered alerts are shown as toasts. */
.has-js [data-form-alert] {
    display: none !important;
}

.toast-root {
    position: fixed;
    top: calc(16px + var(--safe-t));
    right: calc(16px + var(--safe-r));
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(362px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 40px 15px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow:
        0 16px 34px -16px rgba(13, 42, 92, 0.42),
        0 2px 6px -2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast--in {
    opacity: 1;
    transform: none;
}

.toast--out {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

.toast__icon {
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.toast__icon svg {
    width: 15px;
    height: 15px;
}

.toast--success .toast__icon {
    color: #1c9c62;
    background: rgba(28, 156, 98, 0.13);
}

.toast--error .toast__icon {
    color: #d64545;
    background: rgba(214, 69, 69, 0.13);
}

.toast--info .toast__icon {
    color: var(--ph-blue);
    background: rgba(11, 99, 206, 0.13);
}

.toast__body {
    flex: 1;
    min-width: 0;
}

.toast__msg {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--ink);
}

.toast__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.toast__close:hover {
    background: #eef3fb;
    color: #475569;
}

.toast__close svg {
    width: 15px;
    height: 15px;
}

.toast__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    transform-origin: left;
    animation-name: toastbar;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.toast--success .toast__bar {
    background: #1c9c62;
}

.toast--error .toast__bar {
    background: #d64545;
}

.toast--info .toast__bar {
    background: var(--ph-blue);
}

@keyframes toastbar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 768px) {
    .toast-root {
        left: calc(12px + var(--safe-l));
        right: calc(12px + var(--safe-r));
        top: calc(10px + var(--safe-t));
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .toast__bar {
        animation: none !important;
        transition: none !important;
    }
}
