/* =========================================================================
   Unify360 sign-in pages (layout.auth) and guest error pages (layout.error).

   Every rule is scoped to body.u360-auth, so nothing here reaches the app
   shell. Light/dark is a token swap under [data-bs-theme="dark"] (set on
   <html> by the inline theme script); components never branch on theme.
   Sizes are px on purpose: Metronic changes the root font-size per breakpoint.
   The canvas script (assets/js/custom/auth-network.js) reads --ua-net-*.
   ========================================================================= */

.u360-auth {
    color-scheme: light;
    --ua-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* page */
    --ua-page: #F5F7FB;
    --ua-dot: rgba(15, 23, 42, 0.09);
    --ua-glow-1: rgba(155, 59, 149, 0.14);
    --ua-glow-2: rgba(0, 155, 219, 0.14);
    --ua-glow-3: rgba(253, 184, 19, 0.10);

    /* text */
    --ua-ink: #0F172A;
    --ua-ink-2: #1E293B;
    --ua-body: #475569;
    --ua-body-2: #526075;
    --ua-muted: #64748B;

    /* card */
    --ua-surface: #FFFFFF;
    --ua-surface-2: #F8FAFC;
    --ua-hairline: rgba(15, 23, 42, 0.08);
    --ua-card-border: rgba(15, 23, 42, 0.08);
    --ua-card-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 22px -8px rgba(15, 23, 42, 0.08),
        0 32px 64px -24px rgba(38, 63, 151, 0.24),
        0 80px 140px -60px rgba(119, 42, 136, 0.26);
    --ua-brand-tint:
        radial-gradient(110% 70% at 100% 0%, rgba(155, 59, 149, 0.11), transparent 58%),
        radial-gradient(90% 70% at 0% 100%, rgba(0, 155, 219, 0.12), transparent 60%),
        radial-gradient(55% 45% at 92% 96%, rgba(253, 184, 19, 0.11), transparent 62%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 245, 255, 0.80) 52%, rgba(239, 247, 255, 0.82) 100%);
    --ua-brand-tint-solid:
        radial-gradient(110% 70% at 100% 0%, rgba(155, 59, 149, 0.10), transparent 58%),
        radial-gradient(90% 70% at 0% 100%, rgba(0, 155, 219, 0.11), transparent 60%),
        linear-gradient(165deg, #FFFFFF 0%, #F8F5FF 52%, #EFF7FF 100%);
    --ua-glass: rgba(255, 255, 255, 0.66);
    --ua-glass-border: rgba(15, 23, 42, 0.07);
    --ua-glass-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 36px -20px rgba(38, 63, 151, 0.24);
    --ua-spectrum: linear-gradient(90deg, #9B3B95 0%, #EB2D91 26%, #FDB813 50%, #37A5D8 74%, #3FB851 100%);

    /* brand type */
    --ua-headline-grad: linear-gradient(100deg, #1D7FC2 0%, #7B2F8F 52%, #D6247F 100%);
    --ua-tile-amber-bg: rgba(253, 184, 19, 0.17);
    --ua-tile-amber-fg: #A86A00;
    --ua-tile-amber-ring: rgba(240, 165, 0, 0.30);
    --ua-tile-pink-bg: rgba(235, 45, 145, 0.10);
    --ua-tile-pink-fg: #B81E6E;
    --ua-tile-pink-ring: rgba(235, 45, 145, 0.22);
    --ua-tile-sky-bg: rgba(0, 155, 219, 0.11);
    --ua-tile-sky-fg: #00709C;
    --ua-tile-sky-ring: rgba(0, 155, 219, 0.24);

    /* fields (rest border is >= 3:1 against the panel) */
    --ua-field-bg: #FFFFFF;
    --ua-field-border: #8A94A6;
    --ua-field-border-hover: #5F6B80;
    --ua-field-icon: #64748B;
    --ua-placeholder: #64748B;
    --ua-autofill: #EEF4FF;
    --ua-focus: #2563EB;
    --ua-focus-ring: rgba(37, 99, 235, 0.18);
    --ua-check-on: #2556C9;
    --ua-reveal-hover: rgba(15, 23, 42, 0.06);

    /* actions */
    --ua-link: #2453C2;
    --ua-link-hover: #183C94;
    --ua-btn-bg: linear-gradient(180deg, #2F6BD3 0%, #2952B6 56%, #263F97 100%);
    --ua-btn-bg-hover: linear-gradient(180deg, #3473DB 0%, #2B59C2 56%, #2944A2 100%);
    --ua-btn-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        inset 0 -1px 0 rgba(10, 20, 60, 0.25),
        0 1px 2px rgba(15, 23, 42, 0.14),
        0 10px 22px -10px rgba(38, 63, 151, 0.60);
    --ua-btn-shadow-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(10, 20, 60, 0.25),
        0 2px 4px rgba(15, 23, 42, 0.12),
        0 16px 30px -12px rgba(38, 63, 151, 0.66);
    --ua-btn2-bg: #FFFFFF;
    --ua-btn2-bg-hover: #F1F5F9;
    --ua-btn2-border: rgba(15, 23, 42, 0.16);
    --ua-btn2-text: #1E293B;
    --ua-btn2-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);

    /* small icon badges above a heading */
    --ua-badge-bg: rgba(36, 83, 194, 0.08);
    --ua-badge-fg: #2453C2;
    --ua-badge-ring: rgba(36, 83, 194, 0.18);
    --ua-badge-danger-bg: #FEF3F2;
    --ua-badge-danger-fg: #B42318;
    --ua-badge-danger-ring: #FECDCA;

    /* feedback */
    --ua-success-bg: #ECFDF3;
    --ua-success-border: #ABEFC6;
    --ua-success-text: #067647;
    --ua-danger: #D92D20;
    --ua-danger-text: #B42318;
    --ua-danger-bg: #FEF3F2;
    --ua-danger-border: #FECDCA;
    --ua-danger-ring: rgba(217, 45, 32, 0.16);
    --ua-warn-bg: #FFFAEB;
    --ua-warn-border: #FEDF89;
    --ua-warn-text: #93370D;

    /* password strength */
    --ua-meter-off: rgba(15, 23, 42, 0.10);
    --ua-meter-1: #D92D20;
    --ua-meter-2: #DC6803;
    --ua-meter-3: #1570EF;
    --ua-meter-4: #079455;
    /* label text: darker than the bars so 12.5px text clears 4.5:1 on white */
    --ua-meter-1-text: #B42318;
    --ua-meter-2-text: #B54708;
    --ua-meter-3-text: #175CD3;
    --ua-meter-4-text: #067647;

    /* OAuth consent */
    --ua-yes-bg: rgba(7, 148, 85, 0.10);
    --ua-yes-fg: #067647;
    --ua-no-bg: rgba(100, 116, 139, 0.12);
    --ua-no-fg: #475569;

    /* network canvas (read by the script; re-read when the theme flips) */
    --ua-net-colors: #2A5FA9, #0094D4, #8A3593, #E3308F, #3AAE4D, #EFA200;
    --ua-net-link: 0.8;
    --ua-net-node: 0.9;
    --ua-net-glow: 0.6;
    --ua-net-glow-size: 10;
    --ua-net-core: 0;
    --ua-net-ring: 0.5;
    --ua-net-blend: source-over;
}

[data-bs-theme="dark"] .u360-auth {
    color-scheme: dark;

    --ua-page: #090E22;
    --ua-dot: rgba(203, 213, 245, 0.075);
    --ua-glow-1: rgba(119, 42, 136, 0.40);
    --ua-glow-2: rgba(38, 63, 151, 0.50);
    --ua-glow-3: rgba(0, 155, 219, 0.16);

    --ua-ink: #F8FAFC;
    --ua-ink-2: #E2E8F0;
    --ua-body: #B6C0D2;
    --ua-body-2: #9DA9BE;
    --ua-muted: #94A3B8;

    --ua-surface: #0F1533;
    --ua-surface-2: #131A3D;
    --ua-hairline: rgba(148, 163, 184, 0.14);
    --ua-card-border: rgba(148, 163, 184, 0.16);
    --ua-card-shadow:
        0 1px 2px rgba(0, 0, 0, 0.30),
        0 30px 70px -24px rgba(0, 0, 0, 0.70),
        0 80px 140px -60px rgba(46, 84, 214, 0.45);
    --ua-brand-tint:
        radial-gradient(110% 70% at 100% 0%, rgba(155, 59, 149, 0.30), transparent 58%),
        radial-gradient(90% 70% at 0% 100%, rgba(0, 155, 219, 0.20), transparent 60%),
        radial-gradient(55% 45% at 92% 96%, rgba(253, 184, 19, 0.07), transparent 62%),
        linear-gradient(165deg, rgba(22, 30, 68, 0.72) 0%, rgba(26, 20, 60, 0.68) 52%, rgba(12, 28, 60, 0.72) 100%);
    --ua-brand-tint-solid:
        radial-gradient(110% 70% at 100% 0%, rgba(155, 59, 149, 0.26), transparent 58%),
        radial-gradient(90% 70% at 0% 100%, rgba(0, 155, 219, 0.16), transparent 60%),
        linear-gradient(165deg, #161E44 0%, #1A143C 52%, #0C1C3C 100%);
    --ua-glass: rgba(255, 255, 255, 0.045);
    --ua-glass-border: rgba(148, 163, 184, 0.14);
    --ua-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -24px rgba(0, 0, 0, 0.60);

    --ua-headline-grad: linear-gradient(100deg, #5CC8F5 0%, #C08BFF 52%, #FF77B7 100%);
    --ua-tile-amber-bg: rgba(253, 184, 19, 0.12);
    --ua-tile-amber-fg: #FFCB4D;
    --ua-tile-amber-ring: rgba(253, 184, 19, 0.28);
    --ua-tile-pink-bg: rgba(235, 45, 145, 0.14);
    --ua-tile-pink-fg: #FF7AB8;
    --ua-tile-pink-ring: rgba(235, 45, 145, 0.32);
    --ua-tile-sky-bg: rgba(0, 155, 219, 0.15);
    --ua-tile-sky-fg: #5CCBF5;
    --ua-tile-sky-ring: rgba(0, 155, 219, 0.34);

    --ua-field-bg: #0B1130;
    --ua-field-border: #5E6A88;
    --ua-field-border-hover: #8792AE;
    --ua-field-icon: #8A96AB;
    --ua-placeholder: #8A96AB;
    --ua-autofill: #15214F;
    --ua-focus: #7AA7FF;
    --ua-focus-ring: rgba(122, 167, 255, 0.28);
    --ua-check-on: #4D7FF0;
    --ua-reveal-hover: rgba(255, 255, 255, 0.07);

    --ua-link: #8AB8FF;
    --ua-link-hover: #BCD5FF;
    --ua-btn-bg: linear-gradient(180deg, #3A78E6 0%, #3061D2 56%, #2A4CB4 100%);
    --ua-btn-bg-hover: linear-gradient(180deg, #4080EC 0%, #3468DA 56%, #2D52BE 100%);
    --ua-btn-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.40),
        0 12px 30px -10px rgba(64, 112, 255, 0.55);
    --ua-btn-shadow-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.40),
        0 16px 36px -10px rgba(64, 112, 255, 0.65);
    --ua-btn2-bg: rgba(255, 255, 255, 0.04);
    --ua-btn2-bg-hover: rgba(255, 255, 255, 0.09);
    --ua-btn2-border: rgba(148, 163, 184, 0.30);
    --ua-btn2-text: #E2E8F0;
    --ua-btn2-shadow: none;

    --ua-badge-bg: rgba(122, 167, 255, 0.12);
    --ua-badge-fg: #8AB8FF;
    --ua-badge-ring: rgba(122, 167, 255, 0.26);
    --ua-badge-danger-bg: rgba(240, 68, 56, 0.12);
    --ua-badge-danger-fg: #FDA29B;
    --ua-badge-danger-ring: rgba(240, 68, 56, 0.34);

    --ua-success-bg: rgba(23, 178, 106, 0.12);
    --ua-success-border: rgba(23, 178, 106, 0.35);
    --ua-success-text: #75E0A7;
    --ua-danger: #F97066;
    --ua-danger-text: #FDA29B;
    --ua-danger-bg: rgba(240, 68, 56, 0.12);
    --ua-danger-border: rgba(240, 68, 56, 0.38);
    --ua-danger-ring: rgba(249, 112, 102, 0.24);
    --ua-warn-bg: rgba(247, 144, 9, 0.10);
    --ua-warn-border: rgba(247, 144, 9, 0.34);
    --ua-warn-text: #FEC84B;

    --ua-meter-off: rgba(148, 163, 184, 0.22);
    --ua-meter-1: #F97066;
    --ua-meter-2: #FDB022;
    --ua-meter-3: #53B1FD;
    --ua-meter-4: #47CD89;
    --ua-meter-1-text: #F97066;
    --ua-meter-2-text: #FDB022;
    --ua-meter-3-text: #53B1FD;
    --ua-meter-4-text: #47CD89;

    --ua-yes-bg: rgba(71, 205, 137, 0.14);
    --ua-yes-fg: #75E0A7;
    --ua-no-bg: rgba(148, 163, 184, 0.14);
    --ua-no-fg: #B6C0D2;

    --ua-net-colors: #6F8EF7, #2EB6F0, #B565D6, #FF4FA8, #4CCB66, #FFC23A;
    --ua-net-link: 1.2;
    --ua-net-node: 1;
    --ua-net-glow: 0.85;
    --ua-net-glow-size: 13;
    --ua-net-core: 0.7;
    --ua-net-ring: 0.7;
    --ua-net-blend: lighter;
}

/* ---------- page ---------- */

body.u360-auth {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ua-body);
    font-family: var(--ua-font);
    font-size: 15px !important; /* Metronic: body,html { font-size: 13px !important } */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* The page rules below belong to AUTH_PAGE_STYLE=card; the flow style draws its
   own page in auth-flow.css. Components further down are shared by both. */
body.u360-auth--card { background-color: var(--ua-page); }

/* soft brand glows */
body.u360-auth--card::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60vmax 46vmax at 6% -6%, var(--ua-glow-1), transparent 62%),
        radial-gradient(58vmax 46vmax at 104% 104%, var(--ua-glow-2), transparent 62%),
        radial-gradient(40vmax 34vmax at -4% 100%, var(--ua-glow-3), transparent 64%);
}

/* faint dot grid, fading out towards the edges */
body.u360-auth--card::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at center, var(--ua-dot) 1px, transparent 1.6px);
    background-size: 22px 22px;
    background-position: 50% 50%;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 20%, transparent 88%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 20%, transparent 88%);
}

.u360-auth [hidden] { display: none !important; }

.u360-auth ::selection { background: rgba(37, 99, 235, 0.2); }

.u360-auth .ua-network {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.u360-auth .ua-network.is-ready { opacity: 1; }

/* ---------- layout ---------- */

/* Metronic makes body a 100%-tall flex column: without flex-shrink 0 a tall
   form (register, OAuth consent) squeezes the stage to the viewport and the
   card's overflow:hidden clips the bottom fields. */
.u360-auth .ua-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 32px;
}

/* margin:auto (not align-items:center) so a card taller than the viewport scrolls instead of clipping */
.u360-auth .ua-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "brand panel";
    flex: none;
    width: 100%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--ua-card-border);
    border-radius: 28px;
    background: transparent;
    box-shadow: var(--ua-card-shadow);
    /* backwards, not both: a held end state keeps the opacity animation applied,
       which makes the card a backdrop root and kills the brand panel's blur */
    animation: ua-card-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* the five logo ribbons, as one hairline */
.u360-auth .ua-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    height: 2px;
    background: var(--ua-spectrum);
    opacity: 0.85;
    pointer-events: none;
}

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

/* ---------- brand panel ---------- */

.u360-auth .ua-brand {
    grid-area: brand;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 44px 52px 48px;
    background: var(--ua-brand-tint-solid);
    color: var(--ua-body);
}

/* Frosted over the live network on wide screens only; a blurred layer over a
   canvas that redraws every frame is not free on small GPUs. */
@media (min-width: 992px) {
    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .u360-auth .ua-brand {
            background: var(--ua-brand-tint);
            -webkit-backdrop-filter: blur(16px) saturate(170%);
            backdrop-filter: blur(16px) saturate(170%);
        }
    }
}

/* the horizontal logo (layout/partials/auth/lockup): one image per background */
.u360-auth .ua-lockup {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}
.u360-auth .ua-lockup:focus-visible {
    outline: 2px solid var(--ua-focus);
    outline-offset: 6px;
}
.u360-auth .ua-lockup__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 64px;
}
.u360-auth .ua-lockup__img--on-dark { display: none; }
[data-bs-theme="dark"] .u360-auth .ua-lockup__img--on-light { display: none; }
[data-bs-theme="dark"] .u360-auth .ua-lockup__img--on-dark { display: block; }

/* The bare mark (OAuth consent tile). assets/unify360-logo-trans.png carries
   ~18% transparent padding: crop it to the mark's own box (x 194-956, y 202-878 of 1080) */
.u360-auth .ua-lockup__mark {
    position: relative;
    display: block;
    flex: none;
    width: 46px;
    aspect-ratio: 762 / 676;
    overflow: hidden;
}
.u360-auth .ua-lockup__mark img {
    position: absolute;
    top: -29.88%;
    left: -25.46%;
    width: 141.73%;
    max-width: none;
    height: auto;
}
.u360-auth .ua-story { margin: 52px 0 32px; }

.u360-auth .ua-headline {
    margin: 0 0 14px;
    font-family: var(--ua-font);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--ua-ink);
    text-wrap: balance;
}
.u360-auth .ua-gradient-text {
    padding-right: 0.04em;
    background-image: var(--ua-headline-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.u360-auth .ua-kern { margin-left: -0.07em; } /* heavy weight + tight tracking leaves punctuation adrift */
.u360-auth .ua-lede {
    max-width: 34em;
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ua-body);
    text-wrap: pretty;
}

.u360-auth .ua-modules {
    margin: auto 0 0;
    padding: 6px;
    list-style: none;
    background: var(--ua-glass);
    border: 1px solid var(--ua-glass-border);
    border-radius: 20px;
    box-shadow: var(--ua-glass-shadow);
}
.u360-auth .ua-module {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
}
.u360-auth .ua-module + .ua-module::before {
    content: "";
    position: absolute;
    top: 0;
    right: 14px;
    left: 68px;
    height: 1px;
    background: var(--ua-hairline);
}
.u360-auth .ua-module__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ua-tile-bg);
    color: var(--ua-tile-fg);
    box-shadow: inset 0 0 0 1px var(--ua-tile-ring);
}
.u360-auth .ua-module__icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.u360-auth .ua-module--reviews { --ua-tile-bg: var(--ua-tile-amber-bg); --ua-tile-fg: var(--ua-tile-amber-fg); --ua-tile-ring: var(--ua-tile-amber-ring); }
.u360-auth .ua-module--social { --ua-tile-bg: var(--ua-tile-pink-bg); --ua-tile-fg: var(--ua-tile-pink-fg); --ua-tile-ring: var(--ua-tile-pink-ring); }
.u360-auth .ua-module--inbox { --ua-tile-bg: var(--ua-tile-sky-bg); --ua-tile-fg: var(--ua-tile-sky-fg); --ua-tile-ring: var(--ua-tile-sky-ring); }
.u360-auth .ua-module__title {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ua-ink-2);
}
.u360-auth .ua-module__desc {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ua-body-2);
}

/* ---------- form panel ---------- */

.u360-auth .ua-panel {
    grid-area: panel;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 56px 64px 24px;
    background: var(--ua-surface);
    border-left: 1px solid var(--ua-hairline);
}
.u360-auth .ua-panel__body {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
}
.u360-auth .ua-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.u360-auth .ua-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--ua-hairline);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ua-muted);
}
.u360-auth .ua-legal p { margin: 0; }

.u360-auth .ua-form { width: 100%; }

.u360-auth .ua-head { margin-bottom: 32px; }
.u360-auth .ua-title {
    margin: 0 0 8px;
    font-family: var(--ua-font-display, var(--ua-font));
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ua-ink);
}
.u360-auth .ua-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ua-muted);
    overflow-wrap: anywhere;
}
.u360-auth .ua-subtitle strong { font-weight: 700; color: var(--ua-ink-2); }
.u360-auth .ua-meta {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ua-muted);
    overflow-wrap: anywhere;
}
.u360-auth .ua-head__badge {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--ua-badge-bg);
    color: var(--ua-badge-fg);
    box-shadow: inset 0 0 0 1px var(--ua-badge-ring);
}
.u360-auth .ua-head__badge svg { width: 22px; height: 22px; }
.u360-auth .ua-head__badge--danger {
    background: var(--ua-badge-danger-bg);
    color: var(--ua-badge-danger-fg);
    box-shadow: inset 0 0 0 1px var(--ua-badge-danger-ring);
}

/* alerts (session status / validation summary) */
.u360-auth .ua-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.u360-auth .ua-alert__icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.u360-auth .ua-alert--success {
    background: var(--ua-success-bg);
    border-color: var(--ua-success-border);
    color: var(--ua-success-text);
}
.u360-auth .ua-alert--danger {
    background: var(--ua-danger-bg);
    border-color: var(--ua-danger-border);
    color: var(--ua-danger-text);
}
.u360-auth .ua-alert--warning {
    background: var(--ua-warn-bg);
    border-color: var(--ua-warn-border);
    color: var(--ua-warn-text);
}
.u360-auth .ua-alert--flush { margin: 0; }

/* fields */
.u360-auth .ua-field { margin-bottom: 20px; }
.u360-auth .ua-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
}
.u360-auth .ua-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.u360-auth .ua-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ua-ink-2);
}
.u360-auth .ua-label-row .ua-label { margin: 0; }
/* A link shown in the label row but placed after the input in the DOM, so Tab
   goes label -> input -> link (login's "Forgot password?"). */
.u360-auth .ua-field--aside { position: relative; }
.u360-auth .ua-field--aside > .ua-field__aside { /* beats .ua-link's position: relative further down */
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1.3;
}
.u360-auth .ua-field--aside > .ua-field__aside::after { /* hit area stays clear of the input below */
    top: -8px;
    bottom: -4px;
    height: auto;
    transform: none;
}
.u360-auth .ua-label-aside {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ua-muted);
}
.u360-auth .ua-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ua-muted);
}

.u360-auth .ua-control { position: relative; }
.u360-auth .ua-control__icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: var(--ua-field-icon);
    stroke-width: 1.75;
    pointer-events: none;
    transition: color 0.18s ease;
}
.u360-auth .ua-input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px 0 44px;
    font-family: var(--ua-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--ua-ink);
    background: var(--ua-field-bg);
    border: 1px solid var(--ua-field-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.u360-auth .ua-input--plain { padding-left: 16px; }
.u360-auth .ua-input--reveal { padding-right: 52px; }
.u360-auth .ua-input::placeholder { color: var(--ua-placeholder); font-weight: 400; opacity: 1; }
.u360-auth .ua-input:hover { border-color: var(--ua-field-border-hover); }
.u360-auth .ua-input:focus {
    border-color: var(--ua-focus);
    box-shadow: 0 0 0 4px var(--ua-focus-ring);
}
.u360-auth .ua-input:focus ~ .ua-control__icon { color: var(--ua-focus); }
.u360-auth .ua-input:-webkit-autofill,
.u360-auth .ua-input:-webkit-autofill:hover {
    -webkit-text-fill-color: var(--ua-ink);
    -webkit-box-shadow: 0 0 0 1000px var(--ua-autofill) inset;
    caret-color: var(--ua-ink);
    transition: background-color 9999s ease-out 0s;
}
.u360-auth .ua-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ua-ink);
    -webkit-box-shadow: 0 0 0 1000px var(--ua-autofill) inset, 0 0 0 4px var(--ua-focus-ring);
}

/* error state (server-side: is-invalid on the input) */
.u360-auth .ua-input.is-invalid { border-color: var(--ua-danger); }
.u360-auth .ua-input.is-invalid:focus { box-shadow: 0 0 0 4px var(--ua-danger-ring); }
.u360-auth .ua-input.is-invalid ~ .ua-control__icon { color: var(--ua-danger); }
/* the red border already owns the field, so focus needs its own cue */
.u360-auth .ua-input.is-invalid:focus { outline: 2px solid var(--ua-focus); outline-offset: 2px; }

/* Edge draws its own reveal eye next to ours */
.u360-auth .ua-input::-ms-reveal,
.u360-auth .ua-input::-ms-clear { display: none; }

/* show / hide password */
.u360-auth .ua-reveal {
    position: absolute;
    top: 2px;
    right: 2px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ua-field-icon);
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.u360-auth .ua-reveal:hover { color: var(--ua-ink); background: var(--ua-reveal-hover); }
.u360-auth .ua-reveal:focus-visible { outline: 2px solid var(--ua-focus); outline-offset: -4px; }
.u360-auth .ua-reveal svg { width: 20px; height: 20px; stroke-width: 1.75; }
.u360-auth .ua-reveal__hide { display: none; }
.u360-auth .ua-reveal[aria-pressed="true"] .ua-reveal__show { display: none; }
.u360-auth .ua-reveal[aria-pressed="true"] .ua-reveal__hide { display: block; }

/* password strength (guidance only - the server enforces the rule) */
.u360-auth .ua-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.u360-auth .ua-strength__bars {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.u360-auth .ua-strength__bars span {
    height: 4px;
    border-radius: 999px;
    background: var(--ua-meter-off);
    transition: background-color 0.25s ease;
}
.u360-auth .ua-strength__label {
    min-width: 46px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
    color: var(--ua-muted);
}
.u360-auth .ua-strength[data-score="1"] { --ua-meter-on: var(--ua-meter-1); --ua-meter-text: var(--ua-meter-1-text); }
.u360-auth .ua-strength[data-score="2"] { --ua-meter-on: var(--ua-meter-2); --ua-meter-text: var(--ua-meter-2-text); }
.u360-auth .ua-strength[data-score="3"] { --ua-meter-on: var(--ua-meter-3); --ua-meter-text: var(--ua-meter-3-text); }
.u360-auth .ua-strength[data-score="4"] { --ua-meter-on: var(--ua-meter-4); --ua-meter-text: var(--ua-meter-4-text); }
.u360-auth .ua-strength[data-score="1"] .ua-strength__bars span:nth-child(-n+1),
.u360-auth .ua-strength[data-score="2"] .ua-strength__bars span:nth-child(-n+2),
.u360-auth .ua-strength[data-score="3"] .ua-strength__bars span:nth-child(-n+3),
.u360-auth .ua-strength[data-score="4"] .ua-strength__bars span { background: var(--ua-meter-on); }
.u360-auth .ua-strength:not([data-score="0"]) .ua-strength__label { color: var(--ua-meter-text); }

/* checkbox */
.u360-auth .ua-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ua-ink-2);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.u360-auth .ua-check__input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    margin: -10px 0 0;
    opacity: 0;
    cursor: pointer;
}
.u360-auth .ua-check__box {
    display: grid;
    flex: none;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--ua-field-border);
    border-radius: 6px;
    background: var(--ua-field-bg);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.u360-auth .ua-check__box svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.22s ease 0.02s;
}
.u360-auth .ua-check:hover .ua-check__box { border-color: var(--ua-field-border-hover); }
.u360-auth .ua-check__input:checked + .ua-check__box {
    background: var(--ua-check-on);
    border-color: var(--ua-check-on);
}
.u360-auth .ua-check__input:checked + .ua-check__box svg { stroke-dashoffset: 0; }
.u360-auth .ua-check__input[aria-invalid="true"] + .ua-check__box { border-color: var(--ua-danger); }
/* outline, not border: a checked box is already filled in nearly the focus blue */
.u360-auth .ua-check__input:focus-visible + .ua-check__box {
    outline: 2px solid var(--ua-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--ua-focus-ring);
}

/* buttons */
.u360-auth .ua-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    font-family: var(--ua-font);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.u360-auth .ua-btn--block { display: flex; width: 100%; }
.u360-auth .ua-btn--primary,
.u360-auth .ua-btn--primary:hover,
.u360-auth .ua-btn--primary:focus {
    color: #FFFFFF;
}
.u360-auth .ua-btn--primary {
    background: var(--ua-btn-bg);
    box-shadow: var(--ua-btn-shadow);
}
.u360-auth .ua-btn--secondary {
    color: var(--ua-btn2-text);
    background: var(--ua-btn2-bg);
    box-shadow: inset 0 0 0 1px var(--ua-btn2-border), var(--ua-btn2-shadow);
}
@media (hover: hover) {
    .u360-auth .ua-btn--primary:hover {
        background: var(--ua-btn-bg-hover);
        box-shadow: var(--ua-btn-shadow-hover);
        transform: translateY(-1px);
    }
    .u360-auth .ua-btn--secondary:hover {
        color: var(--ua-btn2-text);
        background: var(--ua-btn2-bg-hover);
    }
    .u360-auth .ua-btn:hover .ua-btn__icon { transform: translateX(3px); }
}
.u360-auth .ua-btn--primary:active {
    box-shadow: var(--ua-btn-shadow);
    transform: translateY(0) scale(0.99);
}
.u360-auth .ua-btn--secondary:active { transform: scale(0.99); }
.u360-auth .ua-btn:focus-visible {
    outline: 2px solid var(--ua-focus);
    outline-offset: 3px;
}
.u360-auth .ua-btn__icon {
    width: 18px;
    height: 18px;
    flex: none;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.u360-auth .ua-btn__busy {
    display: none;
    align-items: center;
    gap: 10px;
}
.u360-auth .ua-btn.is-loading { cursor: progress; pointer-events: none; }
.u360-auth .ua-btn.is-loading .ua-btn__label,
.u360-auth .ua-btn.is-loading .ua-btn__icon { display: none; }
.u360-auth .ua-btn.is-loading .ua-btn__busy { display: inline-flex; }
.u360-auth .ua-spinner {
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: ua-spin 0.75s linear infinite;
}

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

.u360-auth .ua-actions {
    display: flex;
    gap: 12px;
}
.u360-auth .ua-actions .ua-btn { flex: 1 1 0; }

.u360-auth .ua-alt {
    margin: 22px 0 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--ua-muted);
}
.u360-auth .ua-alt--small { font-size: 13px; }

/* links (::after widens the touch target to 44px without moving layout) */
.u360-auth .ua-link {
    position: relative;
    font-weight: 600;
    color: var(--ua-link);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    border-radius: 4px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.u360-auth .ua-link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    left: -6px;
    height: 44px;
    transform: translateY(-50%);
}
/* Metronic: body a:focus, body a:active { text-decoration: none !important } */
.u360-auth .ua-link:focus,
.u360-auth .ua-link:active {
    text-decoration-line: underline !important;
    text-decoration-thickness: 1.5px !important;
}
.u360-auth .ua-link:hover {
    color: var(--ua-link-hover);
    /* Metronic sets `body a:hover { text-decoration: none !important }` */
    text-decoration-line: underline !important;
    text-decoration-color: currentColor !important;
    text-decoration-thickness: 1.5px !important;
}
.u360-auth .ua-link:focus-visible {
    outline: 2px solid var(--ua-focus);
    outline-offset: 3px;
}
/* links inside running text keep a faint underline, so colour is not the only cue */
.u360-auth .ua-alt .ua-link,
.u360-auth .ua-subtitle .ua-link,
.u360-auth .ua-check__label .ua-link {
    text-decoration-color: rgba(36, 83, 194, 0.35);
}
[data-bs-theme="dark"] .u360-auth .ua-alt .ua-link,
[data-bs-theme="dark"] .u360-auth .ua-subtitle .ua-link,
[data-bs-theme="dark"] .u360-auth .ua-check__label .ua-link {
    text-decoration-color: rgba(138, 184, 255, 0.40);
}
.u360-auth .ua-link--small { font-size: 13.5px; }
.u360-auth .ua-link--quiet { color: var(--ua-body); }
.u360-auth .ua-link--quiet:hover { color: var(--ua-ink); }
.u360-auth .ua-link--back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.u360-auth .ua-link--back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.u360-auth .ua-link--back:hover svg { transform: translateX(-3px); }

/* ---------- OAuth consent ---------- */

.u360-auth .ua-connect {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.u360-auth .ua-connect__tile {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--ua-surface);
    box-shadow: inset 0 0 0 1px var(--ua-hairline), 0 6px 16px -8px rgba(15, 23, 42, 0.30);
    font-size: 22px;
    font-weight: 800;
    color: var(--ua-ink);
}
.u360-auth .ua-connect__tile .ua-lockup__mark { width: 30px; }
.u360-auth .ua-connect__tile--app {
    color: #FFFFFF;
    background: linear-gradient(150deg, #37A5D8 0%, #2A5FA9 55%, #772A88 100%);
    box-shadow: 0 6px 16px -8px rgba(38, 63, 151, 0.6);
}
.u360-auth .ua-connect__link {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--ua-muted);
    background: var(--ua-surface-2);
    box-shadow: inset 0 0 0 1px var(--ua-hairline);
}
.u360-auth .ua-connect__link svg { width: 15px; height: 15px; }

.u360-auth .ua-perms {
    display: grid;
    gap: 18px;
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 16px;
    background: var(--ua-surface-2);
    box-shadow: inset 0 0 0 1px var(--ua-hairline);
}
.u360-auth .ua-perms__title {
    margin: 0 0 10px;
    font-family: var(--ua-font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ua-muted);
}
.u360-auth .ua-perms__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.u360-auth .ua-perm {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ua-ink-2);
}
.u360-auth .ua-perm__icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    stroke-width: 2.5;
}
.u360-auth .ua-perm--yes .ua-perm__icon { background: var(--ua-yes-bg); color: var(--ua-yes-fg); }
.u360-auth .ua-perm--no .ua-perm__icon { background: var(--ua-no-bg); color: var(--ua-no-fg); }

.u360-auth .ua-business {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ua-surface-2);
    box-shadow: inset 0 0 0 1px var(--ua-hairline);
    font-size: 15px;
    font-weight: 600;
    color: var(--ua-ink);
    overflow-wrap: anywhere;
}
.u360-auth .ua-business__icon { flex: none; width: 18px; height: 18px; color: var(--ua-muted); }

/* select2 (business picker): match .ua-input */
.u360-auth .select2-container .select2-selection--single,
.u360-auth .select2-container--bootstrap5 .select2-selection {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 40px 0 16px;
    font-family: var(--ua-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--ua-ink);
    background-color: var(--ua-field-bg);
    border: 1px solid var(--ua-field-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.u360-auth .select2-container--open .select2-selection,
.u360-auth .select2-container--focus .select2-selection {
    border-color: var(--ua-focus) !important;
    box-shadow: 0 0 0 4px var(--ua-focus-ring) !important;
}
.u360-auth .select2-container .select2-selection__placeholder { color: var(--ua-placeholder); font-weight: 400; }
.u360-auth .select2-container .select2-selection__rendered { color: var(--ua-ink); }
.u360-auth .select2-dropdown {
    overflow: hidden;
    border: 1px solid var(--ua-card-border);
    border-radius: 12px;
    background: var(--ua-surface);
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.35);
    font-family: var(--ua-font);
}

/* ---------- error pages (layout.error, signed-out visitors) ---------- */

.u360-auth .ua-solo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 560px;
    margin: auto;
}
.u360-auth .ua-solo .ua-lockup { align-self: center; }
.u360-auth .ua-card--single {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "panel";
    margin: 0;
}
.u360-auth .ua-card--single .ua-panel {
    padding: 44px 40px;
    border-left: 0;
}
/* the error views size themselves for the app shell; inside the card the card does the spacing */
.u360-auth .ua-card--single .error-shell { min-height: 0; }
.u360-auth .ua-card--single .error-card { max-width: none; padding: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1199.98px) {
    .u360-auth .ua-brand { padding: 40px 44px 44px; }
    .u360-auth .ua-panel { padding: 48px 48px 22px; }
    .u360-auth .ua-headline { font-size: 36px; }
}

/* short laptop viewports (1366x657 after browser chrome) */
@media (min-width: 992px) and (max-height: 760px) {
    .u360-auth .ua-stage { padding-top: 24px; padding-bottom: 24px; }
    .u360-auth .ua-brand { padding-top: 36px; padding-bottom: 36px; }
    .u360-auth .ua-panel { padding-top: 40px; padding-bottom: 18px; }
    .u360-auth .ua-story { margin: 40px 0 28px; }
    .u360-auth .ua-head { margin-bottom: 26px; }
    .u360-auth .ua-field { margin-bottom: 18px; }
    .u360-auth .ua-legal { margin-top: 28px; }
}

@media (max-width: 991.98px) {
    .u360-auth .ua-stage { padding: 28px 20px; }
    .u360-auth .ua-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "brand" "panel";
        max-width: 540px;
        border-radius: 26px;
    }
    .u360-auth .ua-card--single { grid-template-areas: "panel"; }
    .u360-auth .ua-brand {
        padding: 26px 32px;
        border-bottom: 1px solid var(--ua-hairline);
    }
    .u360-auth .ua-panel {
        padding: 32px 32px 20px;
        border-left: 0;
    }
    .u360-auth .ua-content,
    .u360-auth .ua-legal { max-width: none; }
    .u360-auth .ua-story { margin: 22px 0 0; }
    .u360-auth .ua-headline { margin-bottom: 8px; font-size: 27px; }
    .u360-auth .ua-lede { font-size: 14.5px; }
    .u360-auth .ua-modules { display: none; }
    .u360-auth .ua-lockup__img { height: 56px; }
}

@media (max-width: 575.98px) {
    .u360-auth .ua-stage { padding: 16px; }
    .u360-auth .ua-card { border-radius: 22px; }
    .u360-auth .ua-brand { padding: 18px 22px; }
    .u360-auth .ua-story { display: none; }
    .u360-auth .ua-lockup__img { height: 46px; }
    .u360-auth .ua-panel { padding: 26px 22px 18px; }
    .u360-auth .ua-card--single .ua-panel { padding: 32px 22px; }
    .u360-auth .ua-head { margin-bottom: 24px; }
    .u360-auth .ua-title { font-size: 26px; }
    .u360-auth .ua-legal { margin-top: 28px; }
    .u360-auth .ua-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .u360-auth .ua-perms { padding: 16px; }
}

@media (max-width: 359.98px) {
    .u360-auth .ua-lockup__img { height: 40px; }
    .u360-auth .ua-actions { flex-direction: column-reverse; }
    .u360-auth .ua-actions .ua-btn { flex: none; width: 100%; } /* a column flex-basis would override the 52px height */
}

/* 16px stops iOS Safari zooming into a field on focus - phones in landscape too */
@media (pointer: coarse) {
    .u360-auth .ua-input,
    .u360-auth .select2-dropdown .select2-search .select2-search__field { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .u360-auth *,
    .u360-auth *::before,
    .u360-auth *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .u360-auth .ua-spinner {
        animation-duration: 1.6s !important;
        animation-iteration-count: infinite !important;
    }
}

@media (forced-colors: active) {
    .u360-auth .ua-gradient-text {
        background: none;
        -webkit-text-fill-color: CanvasText;
    }
    .u360-auth .ua-input:focus,
    .u360-auth .ua-check__input:focus-visible + .ua-check__box { outline: 2px solid CanvasText; }
    .u360-auth .ua-strength__bars span { border: 1px solid CanvasText; }
    /* the box fill becomes Canvas, so a white tick would vanish */
    .u360-auth .ua-check__box svg { stroke: CanvasText; }
    .u360-auth .ua-check__input:checked + .ua-check__box { background: Highlight; border-color: Highlight; }
    .u360-auth .ua-check__input:checked + .ua-check__box svg { stroke: HighlightText; }
}
