/* Page styles: auth — relocated from the global modules (rule bodies unchanged) */

/* ── from global/05-components.css ── */
/* ---- Login Page ---- */
.ai-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--ai-body-bg) 78%, #fff 22%), transparent 70%),
        radial-gradient(110% 80% at 50% 115%, color-mix(in srgb, var(--ai-body-bg) 80%, #000 20%), transparent 72%),
        var(--ai-body-bg);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px;
}
/* Ambient background orbs */
.login-bg-orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
/* Animated aurora wash + faint drifting grid for depth behind the orbs.
   Hosted on the (overflow:hidden) orb container so they never spawn scrollbars. */
.login-bg-orbs::before {
    content: '';
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(38% 46% at 22% 24%, rgba(var(--ai-primary-rgb), 0.30), transparent 62%),
        radial-gradient(42% 50% at 80% 22%, rgba(149, 128, 248, 0.28), transparent 62%),
        radial-gradient(46% 50% at 78% 82%, rgba(var(--ai-primary-rgb), 0.22), transparent 62%),
        radial-gradient(44% 48% at 20% 84%, rgba(168, 85, 247, 0.22), transparent 62%);
    filter: blur(40px) saturate(1.15);
    will-change: transform;
    animation: login-aurora 26s ease-in-out infinite alternate;
}
.login-bg-orbs::after {
    content: '';
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(var(--ai-primary-rgb), 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--ai-primary-rgb), 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
    opacity: 0.5;
    will-change: background-position;
    animation: login-grid-pan 40s linear infinite;
}
:root.light-mode .login-bg-orbs::before {
    filter: blur(44px) saturate(1.15);
    opacity: 0.4;
}
.login-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.2;
    will-change: transform;
    z-index: 1;
}
.login-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--ai-primary);
    top: -200px;
    left: -100px;
    animation: float-orb-1 26s ease-in-out infinite alternate;
}
.login-bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--ai-secondary);
    bottom: -150px;
    right: -100px;
    animation: float-orb-2 32s ease-in-out infinite alternate;
}
.login-bg-orb-3 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    top: 30%;
    right: 10%;
    opacity: 0.15;
    animation: float-orb-3 22s ease-in-out infinite alternate;
}
.login-bg-orb-4 {
    width: 300px;
    height: 300px;
    background: var(--ai-primary);
    bottom: 10%;
    left: 10%;
    opacity: 0.12;
    animation: float-orb-4 30s ease-in-out infinite alternate;
}
/* A touch sharper (less blur) in light mode so the colour reads more defined */
:root.light-mode .login-bg-orb {
    filter: blur(68px);
}
:root.light-mode .login-bg-orb-1,
:root.light-mode .login-bg-orb-2 {
    opacity: 0.2;
}
:root.light-mode .login-bg-orb-3 {
    opacity: 0.16;
}
:root.light-mode .login-bg-orb-4 {
    opacity: 0.14;
}
@media (prefers-reduced-motion: reduce) {
.login-bg-orb-1,
    .login-bg-orb-2,
    .login-bg-orb-3,
    .login-bg-orb-4,
    .login-bg-orbs::before,
    .login-bg-orbs::after {
        animation: none !important;
    }
.ai-login-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
.ai-login-card {
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: clamp(22px, 3.5vw, 44px) clamp(18px, 4vw, 46px);
    width: 100%;
    max-width: 656px;
    position: relative;
    z-index: 10;
    animation: card-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
:root.light-mode .ai-login-card {
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.1),
        0 2px 8px rgba(15, 23, 42, 0.06);
}
.ai-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* Lighter magenta rail — drops the dark #c2185b stop from --ai-pink-rail-gradient */
    background: linear-gradient(135deg, #ec407a 0%, #e91e63 100%);
    border-radius: 20px 20px 0 0;
    opacity: 1;
}
.ai-login-card .ai-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    margin-bottom: 0;
}
.ai-login-card .ai-brand img {
    height: 62px;
    width: auto;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}
.ai-login-card .form-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ai-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}
.ai-login-card .form-control {
    background: var(--ai-input-bg) !important;
    border: 1px solid var(--ai-border) !important;
    color: var(--ai-text) !important;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 50px !important;
    -webkit-appearance: none;
    appearance: none;
    height: 44px;
    line-height: 1.4;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.ai-login-card textarea.form-control {
    border-radius: 12px !important;
}
/* Autofill must keep pill radius (WebKit resets corner rendering) */
.ai-login-card input.form-control:-webkit-autofill,
.ai-login-card input.form-control:-webkit-autofill:hover,
.ai-login-card input.form-control:-webkit-autofill:focus,
.ai-login-card input.form-control:-webkit-autofill:active {
    border-radius: 50px !important;
}
.ai-login-card .form-control::placeholder {
    color: var(--ai-placeholder);
}
.ai-login-card .form-control:focus {
    background: var(--ai-input-bg) !important;
    border-color: var(--ai-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--ai-primary-rgb), 0.18) !important;
    outline: none;
    border-radius: 50px !important;
}
.ai-login-card .ai-password-group {
    position: relative;
}
.ai-login-card .ai-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--ai-text-muted);
    border: none;
    background: transparent;
    padding: 8px;
    transition: color 0.2s ease;
}
.ai-login-card .ai-password-toggle:hover {
    color: var(--ai-primary);
}
.ai-login-card .ai-login-fields-row .form-control,
.ai-login-card .ai-login-fields-row .ai-password-input {
    height: 44px;
}
.ai-login-card .ai-login-fields-row .ai-password-input {
    padding-right: 2.75rem !important;
}
.ai-login-card .btn-ai {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    background: var(--ai-pink-rail-gradient);
    box-shadow: 0 4px 15px rgba(173, 20, 87, 0.32);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ai-login-card .btn-ai:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    background: var(--ai-pink-rail-gradient);
    box-shadow: 0 8px 25px rgba(173, 20, 87, 0.42);
}
.ai-login-main {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}
.ai-login-subtitle {
    font-size: 0.88rem;
    margin-top: 12px;
    color: var(--ai-text-muted);
    letter-spacing: 0.02em;
    line-height: 1.45;
}
.ai-login-forgot-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ai-primary);
    text-decoration: none;
}
.ai-login-forgot-link:hover {
    color: var(--ai-primary-dark, #c2185b);
    text-decoration: underline;
}
.ai-login-password-label-row {
    margin-bottom: 8px;
}
.ai-login-password-label-row .btn-link.ai-login-forgot-link {
    color: var(--ai-primary) !important;
}
.ai-login-password-label-row .btn-link.ai-login-forgot-link:hover {
    color: var(--ai-primary-dark, #c2185b) !important;
}
.ai-login-forgot-link--inline {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
/* Forgot password modal */
.ai-login-forgot-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.ai-login-forgot-overlay.show {
    opacity: 1;
    visibility: visible;
}
.ai-login-forgot-modal {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-border);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-login-forgot-overlay.show .ai-login-forgot-modal {
    transform: translateY(0) scale(1);
}
.ai-login-forgot-modal-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ai-pink-rail-gradient);
    color: #fff;
    border: none;
    outline: none;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}
.ai-login-forgot-header-text {
    flex: 1;
    min-width: 0;
}
.ai-login-forgot-modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}
.ai-login-forgot-modal-header .ai-modal-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 1px;
}
.ai-login-forgot-modal-header .ai-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* 3D — glassy white gradient + bevel on the coloured header */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-login-forgot-modal-header .ai-modal-icon i {
    font-size: 1rem;
    color: #fff;
}
.ai-login-forgot-modal-header .ai-record-close:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
    outline: none;
}
.ai-login-forgot-modal-body {
    padding: 18px 18px 20px;
}
.ai-login-forgot-intro {
    line-height: 1.45;
    color: var(--ai-text-muted);
}
.ai-login-forgot-modal .form-control {
    background: var(--ai-input-bg) !important;
    border: 1px solid var(--ai-border) !important;
    color: var(--ai-text) !important;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 50px !important;
    -webkit-appearance: none;
    appearance: none;
}
.ai-login-forgot-modal .form-control::placeholder {
    color: var(--ai-placeholder);
}
.ai-login-forgot-modal .form-control:focus {
    background: var(--ai-input-bg) !important;
    border-color: var(--ai-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--ai-primary-rgb), 0.18) !important;
    outline: none;
    border-radius: 50px !important;
}
.ai-login-forgot-modal .form-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ai-text-muted);
    margin-bottom: 8px;
}
.ai-login-forgot-modal .alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #10b981;
}
.ai-login-forgot-modal .alert-danger {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--ai-danger);
}
:root.light-mode .ai-login-forgot-modal .alert-success {
    color: #065f46;
}
:root.light-mode .ai-login-forgot-modal .alert-danger {
    color: #9b1c1c;
}
.ai-login-theme-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-login-theme-btn:hover {
    color: #fff;
    border-color: rgba(233, 30, 99, 0.45);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 36px 0 rgba(233, 30, 99, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.ai-login-theme-btn:active {
    transform: translateY(0) scale(0.98);
}
.ai-login-theme-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.45);
}
:root.light-mode .ai-login-theme-btn {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 4px rgba(15, 23, 42, 0.04);
}
:root.light-mode .ai-login-theme-btn:hover {
    color: var(--ai-primary);
    border-color: rgba(233, 30, 99, 0.35);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ai-login-bright-toggle {
    position: fixed;
    top: 68px;
    right: 14px;
    z-index: 1000;
    width: 44px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-login-bright-toggle:hover {
    transform: translateY(-1px) scale(1.04);
}
.ai-login-bright-toggle:active {
    transform: translateY(0) scale(0.96);
}
.ai-login-bright-toggle-track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.ai-login-bright-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}
.ai-login-bright-toggle-thumb i {
    font-size: 10px;
    color: rgba(15, 23, 42, 0.85);
    transition: color 0.25s ease;
}
/* Active State.
   Also keyed off :root.all-bright-mode (set before first paint by the inline
   <head> script) so the slider renders in the ON position immediately instead of
   animating from OFF when the page JS adds .active — no retoggle on every load. */
.ai-login-bright-toggle.active .ai-login-bright-toggle-track,
:root.all-bright-mode .ai-login-bright-toggle .ai-login-bright-toggle-track {
    background: var(--ai-primary); /* Brand pink #e91e63 */
    border-color: rgba(233, 30, 99, 0.4);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15), 0 0 12px rgba(233, 30, 99, 0.45);
}
.ai-login-bright-toggle.active .ai-login-bright-toggle-thumb,
:root.all-bright-mode .ai-login-bright-toggle .ai-login-bright-toggle-thumb {
    transform: translateX(22px);
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
}
.ai-login-bright-toggle.active .ai-login-bright-toggle-thumb i,
:root.all-bright-mode .ai-login-bright-toggle .ai-login-bright-toggle-thumb i {
    color: var(--ai-primary);
}
.ai-login-bright-toggle:focus-visible .ai-login-bright-toggle-track {
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.45);
}
/* Light Mode overrides */
:root.light-mode .ai-login-bright-toggle-track {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08);
}
:root.light-mode .ai-login-bright-toggle-thumb {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18), 0 1px 1px rgba(15, 23, 42, 0.1);
}
:root.light-mode .ai-login-bright-toggle-thumb i {
    color: rgba(15, 23, 42, 0.7);
}
:root.light-mode .ai-login-bright-toggle.active .ai-login-bright-toggle-track,
:root.light-mode.all-bright-mode .ai-login-bright-toggle .ai-login-bright-toggle-track {
    background: var(--ai-primary);
    border-color: rgba(233, 30, 99, 0.4);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.12), 0 0 12px rgba(233, 30, 99, 0.35);
}
:root.light-mode .ai-login-bright-toggle.active .ai-login-bright-toggle-thumb i,
:root.light-mode.all-bright-mode .ai-login-bright-toggle .ai-login-bright-toggle-thumb i {
    color: var(--ai-primary);
}

/* ── from global/07-loaders-modals.css ── */
/* ---- Login Success Loader ---- */
.login-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ai-pink-rail-gradient);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    flex-direction: column;
    gap: 32px;
}
.login-loader-overlay.easing-out {
    animation: fadeOutOverlay 0.9s ease-in forwards !important;
}
.loader-circles {
    --loader-size: 110px;
    position: relative;
    width: var(--loader-size);
    height: var(--loader-size);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: scaleInCircles 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform;
}
.loader-circles.easing-out {
    animation: scaleOutCircles 0.9s cubic-bezier(0.36, 0, 0.66, -0.56) forwards !important;
}
.loader-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
    will-change: transform;
}
.loader-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInText 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.loader-text.easing-out {
    animation: fadeOutText 0.6s ease-in forwards !important;
}
.loader-version {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
    text-align: center;
    opacity: 0;
    animation: fadeInText 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.45s;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.loader-version.easing-out {
    animation: fadeOutText 0.6s ease-in forwards !important;
}
.loader-circle.outer {
    width: 100%;
    height: 100%;
    border-width: 3px;
    animation: orbitOuter 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.loader-circle.middle {
    width: 70%;
    height: 70%;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.7);
    animation: orbitMiddle 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.loader-circle.inner {
    width: 35%;
    height: 35%;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.5);
    animation: orbitInner 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* ── Login background & entrance animations ── */
/* Slow drifting aurora wash */
@keyframes login-aurora {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.05); }
    50%  { transform: translate3d(1.5%, -2%, 0) rotate(8deg) scale(1.14); }
    100% { transform: translate3d(-2%, 1.5%, 0) rotate(-6deg) scale(1.08); }
}
/* Faint grid pan — one cell loop so it tiles seamlessly (mask stays put) */
@keyframes login-grid-pan {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 56px 56px, 56px 56px; }
}
/* Orbs drift with a touch of scale + rotation for organic motion */
@keyframes float-orb-1 {
    from { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    to   { transform: translate3d(130px, 90px, 0) scale(1.12) rotate(18deg); }
}
@keyframes float-orb-2 {
    from { transform: translate3d(0, 0, 0) scale(1.1) rotate(0deg); }
    to   { transform: translate3d(-110px, -70px, 0) scale(0.9) rotate(-16deg); }
}
@keyframes float-orb-3 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-60px, 90px, 0) scale(1.18); }
}
@keyframes float-orb-4 {
    from { transform: translate3d(0, 0, 0) scale(0.95); }
    to   { transform: translate3d(70px, -80px, 0) scale(1.15); }
}

/* Negative delays start each loop mid-drift, so the backdrop is already
   spread across the viewport on the very first paint (no blank start frame). */
.login-bg-orbs::before { animation-delay: -8s; }
.login-bg-orbs::after  { animation-delay: -10s; }
.login-bg-orb-1 { animation-delay: -6s; }
.login-bg-orb-2 { animation-delay: -14s; }
.login-bg-orb-3 { animation-delay: -9s; }
.login-bg-orb-4 { animation-delay: -4s; }

/* The global `.no-transition` helper (added on every theme/bright flip) sets
   `animation-duration/-delay: 0s !important`, which collapses these loops and
   restarts them from frame 0 — making the orbs reset/flash blank on each mode
   switch. Pin their timing (to the same values as above) so a switch leaves the
   running animations untouched. */
.no-transition .login-bg-orbs::before { animation-duration: 26s !important; animation-delay: -8s !important; }
.no-transition .login-bg-orbs::after  { animation-duration: 40s !important; animation-delay: -10s !important; }
.no-transition .login-bg-orb-1 { animation-duration: 26s !important; animation-delay: -6s !important; }
.no-transition .login-bg-orb-2 { animation-duration: 32s !important; animation-delay: -14s !important; }
.no-transition .login-bg-orb-3 { animation-duration: 22s !important; animation-delay: -9s !important; }
.no-transition .login-bg-orb-4 { animation-duration: 30s !important; animation-delay: -4s !important; }

