.controller-account.action-login #login-form {
    max-width: 100% !important;
}

input[type="submit"] {
    background: #1d2226 !important;
    color: #ffffff !important;
}

input[type="submit"]:not([data-disable-with="Delete"]):not([data-disable-with="Copy and follow"]):hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.controller-account.action-login #content {
    all: revert !important;
}

.controller-account.action-login #main {
    all: revert !important;
}

.controller-account.action-login:before {

    all: revert !important;
    overflow: scroll;
}

#footer {
    visibility: hidden;
}


.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #f5f5f5 !important;
}

/* When animations are disabled, show a plain background color */
.bg-plain #particles-background {
    background-color: #f5f5f5 !important;
}
.bg-plain #particles-background canvas { display:none !important; }

.controller-account.action-login #login-form label {
    font-weight: 100 !important;
}

body:not(.theme-dark).controller-account.action-login #login-form {
    background-color: #f5f5f5 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Visual ON/OFF switch for background animation */
.anim-switch-wrap {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}
.anim-switch-text {
    font-size: 12px;
    color: #4a4f55;
    background: #ffffffb3;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(4px);
}
.anim-switch {
    width: 56px;
    height: 28px;
    border-radius: 14px;
    background: #d0d4d8;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: initial;
    padding: 2px;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(4px);
    overflow: hidden;
    box-sizing: border-box;
}
.anim-switch .knob {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    left: 2px;
    transition: left 0.2s ease;
    z-index: 2;
}
.anim-switch .label {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    color: #4a4f55;
    opacity: 0.8;
    z-index: 1;
}
.anim-switch .label.off { left: 0; }
.anim-switch .label.on { right: 0; }
.anim-switch.is-on { background: #60c17d; }
.anim-switch.is-on .label.on { color: #103a1e; opacity: 1; }
.anim-switch.is-on .label.off { opacity: 0.5; }
.anim-switch.is-on .knob { left: calc(100% - 2px - 24px); }
.anim-switch.is-off { background: #d0d4d8; }
.anim-switch.is-off .label.off { color: #4a4f55; opacity: 1; }
.anim-switch.is-off .label.on { opacity: 0.5; }

/* Ensure switch sits above background canvas */
.controller-account.action-login .anim-switch-wrap { z-index: 2; }
